Do global variables have a time out limit? I find when I set a global variable it loses the value after a certain amount of time. Is there anyway to hold that value the whole time they have the application open??
Global variables should maintain their value while the application is running code. If, for any reason, the Db stops running code (such as going into any design view or unhandled errors) then the global variables lose their values. I usually set up a form that I keep my 'global variables' on in text boxes.
Where are you defining the global variables? They need to be defined in something that is always open and available like the standard module in the application. If you put a public variable in a Form and the Form closes the value is gone - could this be happening.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.