Hello All,
I have an issue with an Access 2003 ADP file hooking up to SQL Server 2005.
I had a global variable in a module like the following:
Public loginUserName As String
I found out that upon errors, the value for this variable gets reset. So, after some initial online research, I changed this variable to a property in a code module:
Public Property Let UserID(strUID As String)
mstrUID = strUID
End Property
Public Property Get UserID() As String
UserID = mstrUID
End Property
That seemed to work initially when combined with a generic error handler that is used to log all errors.
I've just recently been notified by the Client that the value from "UserID" is still getting flushed out -- but mainly on "timeout expired" errors.
Is there a way (with fewer resources used as possible) to maintain these "global" values upon errors/timeouts?
Thanks!!
I have an issue with an Access 2003 ADP file hooking up to SQL Server 2005.
I had a global variable in a module like the following:
Public loginUserName As String
I found out that upon errors, the value for this variable gets reset. So, after some initial online research, I changed this variable to a property in a code module:
Public Property Let UserID(strUID As String)
mstrUID = strUID
End Property
Public Property Get UserID() As String
UserID = mstrUID
End Property
That seemed to work initially when combined with a generic error handler that is used to log all errors.
I've just recently been notified by the Client that the value from "UserID" is still getting flushed out -- but mainly on "timeout expired" errors.
Is there a way (with fewer resources used as possible) to maintain these "global" values upon errors/timeouts?
Thanks!!
Comment