G
Guest
I am having problems with Global/Public variables in Access 2003.
I define them in a module. I initialize the varibles when the database
startups. However, when I open a form the global variables get reset to empty
strings or 0 depending on the type.Also, within the code of a subform, I can
set a variable to a value, but when I check the value in another subroutine,
the variable has been reset. This happens on several machines, not just my
development system.
Does anyone else have these problems? If so what is the solution?
(I'm a very experienced programmer and have been using public variables for
years. I can't believe that I suddenly forgot how to use public variables.)
BobG
I define them in a module. I initialize the varibles when the database
startups. However, when I open a form the global variables get reset to empty
strings or 0 depending on the type.Also, within the code of a subform, I can
set a variable to a value, but when I check the value in another subroutine,
the variable has been reset. This happens on several machines, not just my
development system.
Does anyone else have these problems? If so what is the solution?
(I'm a very experienced programmer and have been using public variables for
years. I can't believe that I suddenly forgot how to use public variables.)
BobG