In the OnClose event, I added the following code. I want to prompt the user with a Yes/No question. I receive an run-time error '13' on the 3rd line. How do I get rid of this line.
Private Sub Form_Close()
Dim myReply
myReply = MsgBox("Are you sure?", vbYesNo)
If myReply = vbYes Then...