WhiteZiggy
Programmer
Ok.
I am working on a database that I didn't write. I am fixing it though to the best of my ability and am running across an unusual error.
There is a form that when loading, loses the 'USER' variable that is populated at login. The exact time of loss is not specific. If you step through the code, it always works fine. Go figure. I have multiple 'DOEVENTS' in the code and have even gone so far as testing it with one after every line. This still does not always work.
It makes it the OnCurrent event, which is then used to populate the field. On the form I load an image, which can be very large at times. I have found a work around which is to populate the box (username) at the 1st step in the OnCurrent and then check to see if the global is still there at the end of the OnCurrent and repopulate it if it isnt. This appears to work 99% of the time.
I am thinking it is either 1) The image loading is causing it or 2) The network traffic is forcing the loss of it. (or a Combination of the 2).
Any suggestions or ideas?
Thanks in advance,
WZ
I am working on a database that I didn't write. I am fixing it though to the best of my ability and am running across an unusual error.
There is a form that when loading, loses the 'USER' variable that is populated at login. The exact time of loss is not specific. If you step through the code, it always works fine. Go figure. I have multiple 'DOEVENTS' in the code and have even gone so far as testing it with one after every line. This still does not always work.
It makes it the OnCurrent event, which is then used to populate the field. On the form I load an image, which can be very large at times. I have found a work around which is to populate the box (username) at the 1st step in the OnCurrent and then check to see if the global is still there at the end of the OnCurrent and repopulate it if it isnt. This appears to work 99% of the time.
I am thinking it is either 1) The image loading is causing it or 2) The network traffic is forcing the loss of it. (or a Combination of the 2).
Any suggestions or ideas?
Thanks in advance,
WZ