Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prevent a user from closing an access runtime application

Status
Not open for further replies.

CPUburn

Programmer
Jan 18, 2001
146
BE
problem:
when a subform within a certain form in the application is locked the user should not be able to close the application. At first glance the solution might seem obvious: in the unload event of the main form there's a statement which checks whether the subform is locked or not,
if it is the unload event is canceled. While closing access, the unload event of the form is also triggered, so there's no problem. The problem arises while starting access with a /runtime switch, in that case FIRST the "application.quit" is triggered, and after all windows have been closed there 's my message that warns the user the form cannot be closed at this stage.
Is there anyone who can offer me a solution to this ??
Thx

the Kid
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top