Exit msgbox

jbates83

New member
Local time
Today, 08:32
Joined
Jul 21, 2003
Messages
7
I am trying to make a yes or no exit message box
if it is yes I want it to exit the form
if it is no I want it to go back to the form, but I cant seemk to get it right.
Can someone help me?
 
Msgboxs are easy,

Code:
[B]VBA[/B]
if msgbox("Are you sure?",vbyesno,"EXIT") = vbyes then
     'close form
end if

I suggest you look in the help its very informative.




:cool:ShadeZ:cool:
 

Users who are viewing this thread

Back
Top Bottom