Hi guys
I found some code on this forum (thanks to richmorrison) to help bring up a pop up for when the user quits the database:
this is great, but 'access' is still open. all i wanna do is add a DoCmd.Quit after the 'Then' but it won't have any of it.
I'm sure i just have syntax wrong (i'm a java programmer, not exactly great at access!) - can anyone help?
Cheers
I found some code on this forum (thanks to richmorrison) to help bring up a pop up for when the user quits the database:
Code:
Private Sub Form_Unload(Cancel As Integer)
Dim intReturn As Integer
intReturn = MsgBox("Do you want to quit application ?", vbYesNo, "Quit ?")
If (intReturn = vbYes) Then
Else
Cancel = True
End If
End Sub
this is great, but 'access' is still open. all i wanna do is add a DoCmd.Quit after the 'Then' but it won't have any of it.
I'm sure i just have syntax wrong (i'm a java programmer, not exactly great at access!) - can anyone help?
Cheers