Module Creation Problem
I have a project that has a number of Subs in it and I thought it would be easy to move some of the subs to modules. After moving the Public/Private subs to module(s), I get the dreaded "variable is undefined" error.
The variable that I'm having a problem with is declared in the first/main form of the project as a global variable (public) and as long as all of the subs are in the secondary form, there isn't a problem.
However, when I move the subs to modules, the compiler then reports that the globally defined variable is then undefined. What am I doing wrong?
Thanks in advance,