B
Bill Davis
I am trying to use this code in the On Close Event of my main form, but
I get can "variable not defined" Compile error. I am new to and VB so
any help would be appreciated.
Thank in advance
If MsgBox("Are you sure you want to exit?", 65, " Database") = vbOK Then
DoCmd.RunCommand acCmdExit
ElseIf vbCancel Then
Cancel = True
End If
I get can "variable not defined" Compile error. I am new to and VB so
any help would be appreciated.
Thank in advance
If MsgBox("Are you sure you want to exit?", 65, " Database") = vbOK Then
DoCmd.RunCommand acCmdExit
ElseIf vbCancel Then
Cancel = True
End If