Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Yes/No Msg Box

Status
Not open for further replies.

JavaToPerlNowVB

Programmer
Joined
Jul 14, 2005
Messages
84
Location
US
I want to create a yes no msg box where if user press yes do something and if user press no exit out.

thanks
 
For the YES button:
Select event procedure in "ON CLICK" write the code that you want the YES button to perform

and for No Button
do the same but the event procedure will be to close the form.

Hope this helps
 
Better yet, look at the msgbox function using a response argument, then check the response to determine what to do.
 

reply = msgbox "message",acyesno,"title"
if reply = acyes then
do something...
else
do somthing else...
end if



Program Error
Programmers do it one finger at a time!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top