G
Guest
How can I find out at what point a Global variable loose its value on an end user machine while they are entering in a new record
Environment is Front End sits on local machine, data sits on a server. My Main Menu form contains a subform that when a user wants to add or edit a record a set the object source of my subform to the frmEditData form
Me.frmViewAll.SourceObject = "frmEditData
I then set a global variable gsubfrm to Form_frmEditDat
Set gsubfrm = Form_frmEditDat
The reason is that the sub form frmViewAll could be any one of 20 forms and each one of the 20 forms contain public function like canSave. They have these functions so that when a use click on my toolbar my canSave function on my main menu form has the comman
canSave = gsubfrm.canSav
The error that occurs is that gsubfrm becomes Nothing but I don't now why, the forms have all worked fine for years and its only after a recent upgrade has this fault appeared but not for all users. The problem does not arise if the data is stored on the local machine and for other users they don't have this problem. Could it be that if a network error occurs global variable values are lost
Any help would be great
TI
KM
Environment is Front End sits on local machine, data sits on a server. My Main Menu form contains a subform that when a user wants to add or edit a record a set the object source of my subform to the frmEditData form
Me.frmViewAll.SourceObject = "frmEditData
I then set a global variable gsubfrm to Form_frmEditDat
Set gsubfrm = Form_frmEditDat
The reason is that the sub form frmViewAll could be any one of 20 forms and each one of the 20 forms contain public function like canSave. They have these functions so that when a use click on my toolbar my canSave function on my main menu form has the comman
canSave = gsubfrm.canSav
The error that occurs is that gsubfrm becomes Nothing but I don't now why, the forms have all worked fine for years and its only after a recent upgrade has this fault appeared but not for all users. The problem does not arise if the data is stored on the local machine and for other users they don't have this problem. Could it be that if a network error occurs global variable values are lost
Any help would be great
TI
KM