F
Frenchie
Hello !
Given a form with an "Exit" button.
On this button "click" event, I have the following code:
blnExitFromButton = True
DoCmd.Quit acQuitSaveAll
--> blnExitFromButton is a module global variable allowing me to know
if the form was closed using the buttom or otherwise (ex: clicking on
the X).
In the "Form_Unload" event procedure, there's the following :
If blnExitFromButton = False Then
If MsgBox("Are you sure you want to exit".... = vbNo Then
Cancel = True
Exit Sub
End If
End If
...
Despite this, if I click on the Exit button, the blnExitFromButton
value upon entering the "Unload" procedure is "False" and the Msgbox
pops.. Moreover, even if I answer "No" to the msgbox, the applications
close anyway..
Looks like a case of corrupted DB.. or... is there something I'm
missing ?
Thanks
Given a form with an "Exit" button.
On this button "click" event, I have the following code:
blnExitFromButton = True
DoCmd.Quit acQuitSaveAll
--> blnExitFromButton is a module global variable allowing me to know
if the form was closed using the buttom or otherwise (ex: clicking on
the X).
In the "Form_Unload" event procedure, there's the following :
If blnExitFromButton = False Then
If MsgBox("Are you sure you want to exit".... = vbNo Then
Cancel = True
Exit Sub
End If
End If
...
Despite this, if I click on the Exit button, the blnExitFromButton
value upon entering the "Unload" procedure is "False" and the Msgbox
pops.. Moreover, even if I answer "No" to the msgbox, the applications
close anyway..
Looks like a case of corrupted DB.. or... is there something I'm
missing ?
Thanks