Dear MS Access Expert.
Static variables don't see to hold their value after the end of execution.
I have a main function that is called using the MS Access form timer every 5 min.
This main function calls a second function multiple times that has Static variables. While executing the main, the Static Variables hold the data but once execution of the main is done they seem to lose the data for the next 5min cycle.
Will the same occur with global variables or do they store data as long as the .mdb is open? I expected the static variables to hold the data as long as .mdb is open.
Thanks
Static variables don't see to hold their value after the end of execution.
I have a main function that is called using the MS Access form timer every 5 min.
This main function calls a second function multiple times that has Static variables. While executing the main, the Static Variables hold the data but once execution of the main is done they seem to lose the data for the next 5min cycle.
Will the same occur with global variables or do they store data as long as the .mdb is open? I expected the static variables to hold the data as long as .mdb is open.
Thanks