do you know what i mean, when i click on the buttom a Quit box appear to me with
"are you sure you want to Quit" and then there is Yes or No to it.
how to write the code for this in visual basic (microsoft Access) ? i am new to Access, so i don't know.
In microsoft Access, how to create a message box?computer virus
answer = msgbox("Are you sure you want to quit", YesNo,"Confirm Quit")
answer contains one of two values on return
vbYes which equates to the value of 6 or vbNo which equates to y
so if you could say something like
if answer = vbYes then
end
else if answer in vbNo then
exit sub
end if
In microsoft Access, how to create a message box?free spyware remover
You can also do it a little more concisely:
If MsgBox("Are you sure you want to quit?", vbYesNoCancel, "CONFIRM") %26lt;%26gt; vbYes Then Exit Sub
Any code following that statement will execute UNLESS the user chooses Yes.
搂
No comments:
Post a Comment