Dec 17, 2001 #1 ii128 Programmer May 18, 2001 129 US On the form, I want to pop up a message, if the user doesn't click on the OK button on the message the form Automatically close. Anyone can help me? how can I do that???
On the form, I want to pop up a message, if the user doesn't click on the OK button on the message the form Automatically close. Anyone can help me? how can I do that???
Dec 18, 2001 #2 tomschafer Technical User Aug 9, 2001 474 US Try this... Dim strMsg As String strMsg = MsgBox("Prompt", vbOKCancel, "Title" If strMsg <> vbOK Then DoCmd.Close acForm, Me.Name End If Upvote 0 Downvote
Try this... Dim strMsg As String strMsg = MsgBox("Prompt", vbOKCancel, "Title" If strMsg <> vbOK Then DoCmd.Close acForm, Me.Name End If