Are global variables handled the same in VBA Access 97 as they are in VB 6.0?
The reason I ask is that I recently converted an older access database written by someone else years ago and the code is riddled with statements that check to see if global variables are set. If they are not set, the application will give the user an error message. This happens a lot and the user has to restart the application (by the way this error happens randomly and happened before I converted the application)
I am trying to get my arms around this problem, but am having difficulty. The first question that I have is why would a programmer want to check if global variables are set?
Second, how does the global variables setting get reset randomly in this code?
The reason I ask is that I recently converted an older access database written by someone else years ago and the code is riddled with statements that check to see if global variables are set. If they are not set, the application will give the user an error message. This happens a lot and the user has to restart the application (by the way this error happens randomly and happened before I converted the application)
I am trying to get my arms around this problem, but am having difficulty. The first question that I have is why would a programmer want to check if global variables are set?
Second, how does the global variables setting get reset randomly in this code?