I am trying to have a message box appear that has 2 buttons for response, Yes and No, for the user to make a selection. I am using the following code but an error message appears stating “Compile Error, Invalid Qualifier” and highlites MsgBox. I am using Access 2000 and would appreciate assistance in correcting my error.
Private Sub Form_Close()
Dim UserSelection
UserSelection = MsgBox ("This will end your session"
.vbYesNo + vbQuestion("Are You Sure"
kevsim
Private Sub Form_Close()
Dim UserSelection
UserSelection = MsgBox ("This will end your session"
kevsim