General information
Category:
Forms & Form designer
That was it. Something in my code was calling for the form to be Refreshed, at which point it started trying to work with Fingoods again. I simply left the "select fingoods" line at the top of that code and all is well.
I never realized that simply closing a browse window would cause the Activate code to run on the window below.
Thanks very much to everyone for their help on this!
>>I now see what's happening, but don't understand why...
>>
>>When I close the browse window, it's doing a Refresh. And it's trying to perform operations on fields from Fingoods when the cursor is still active. If I put "select fingoods" at the top of the Refresh code, life is good.
>>
>>It's not hurting anything to have that there, but why would my form refresh itself in the middle of the Click event, just from having a browse window closed?
>
>It's regaining focus - maybe there's some code in .activate of something that calls for a refresh? Try to start an event log in the first line of the .click, and close it at the last line. Maybe that'd tell you what's going on.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only