In this access form I'm working on, I have a global variable that takes a value from another form in its Form_Load event. For some reason, an unknown variable "loses its value" (becomes = ") after some time or some kind of event occurs. I could not notice anything special that causes this behavior. Are global variables reset after some time "inaction" in the form?
This is how I set the global variables I'm talking about:
Private Sub Form_Load() '... Set prev_form = Form_Identification.Form PasswordSybase = prev_form.Password.Value & vbNullString UserSybase = prev_form.UserID.Value & vbNullString '... End Sub
vba ms-access ms-access-2000
Applepie
source share