By Richard Rost 2 years ago
Use MsgBox to Create an "Are You Sure?" Prompt
In this video, I will teach you how to use the MsgBox command in Microsoft Access VBA. You will see how to create a simple popup. Then you will learn how to use MsgBox to return a YES or NO response from the user. This is helpful before running long or delicate procedures.
Anabel from Tuscaloosa, Alabama (a Gold Member) asks: I have a series of queries that I run once a month to generate reports. There's a bunch of append and delete queries in there, and they take a LONG time to run. I've accidentally clicked on the button to start this procedure a few times. Short of killing Access, is there any way to have it prompt me "Are You Sure?" before beginning this process?
Members will learn how to avoid using the MsgBox command altogether by modifying the button's caption to ask the user if they're sure.
Silver Members and up get access to view Extended Cut videos, when available. Gold Members can download the database template from class plus get access to the Code Vault. If you signed up on YouTube you have to register on my YouTube Find User page so I can set up your account here on my web site. If you're not a member, Join Today!
microsoft access, ms access, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #instruction, #learn, #lesson, #training, #database, MsgBox, Msg Box, Message Box, MessageBox, Are You Sure, vbYesNo, vbYes, vbNo, vbYesNoCancel, Prompt User, Message Boxes, MsgBox Return Values, Yes/No, OK, Cancel
Subscribe to MsgBox
Get notifications when this page is updated