Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL error upon closing a form
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00120396
Message ID:
00120866
Views:
34
>Actually, now that you mention it, when AutoClose was set to .T. it closed fine. But it closed my database which in turn made it so that I couldn't close any of my other forms which have the views in their data environment.
>I didn't think about it at the time cause I was getting the errors when closing the rest of the forms and I was happy to get rid of the AutoClose problem.
>Have any suggestions?

More questions:

Are you using the default datasession or private datasessions? (Sounds like default).

If default, then simply USE your view
SELECT MyView
USE
before you leave the form.

In fact, you can do the same thing ANY TIME. Put the code in the QueryUnload event, and be sure you call it if you have an exit button.

Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform