hen 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
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