How to Use the MsgBox Command in Microsoft Access VBA to Create an "Are You Sure?" Prompt.

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.พ. 2025
  • 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?
    BONUS FOR MEMBERS:
    Silver Members and up get access to an Extended Cut of this video. 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.
    MEMBERS VIDEO:
    • MsgBox Are You Sure? M...
    BECOME A MEMBER:
    TH-cam: / @599cd
    or My Site: 599cd.com/THMe...
    LEARN MORE:
    599cd.com/MsgBox
    LINKS:
    Intro to Access VBA: 599cd.com/Intr...
    Access Developer 1: 599cd.com/ACD1
    MsgBox Glossary Item: 599cd.com/MsgB...
    COURSES:
    FREE Access Beginner Level 1: 599cd.com/Free1
    $1 Access Level 2: 599cd.com/1Dollar
    FREE TEMPLATE DOWNLOADS:
    TechHelp Free Templates: 599cd.com/THFree
    Blank Template: 599cd.com/Blank
    Contact Management: 599cd.com/Cont...
    Order Entry & Invoicing: 599cd.com/Invo...
    More Access Templates: 599cd.com/Acce...
    ADDITIONAL RESOURCES:
    Get on my Mailing List: 599cd.com/YTML
    Contact Me: 599cd.com/Contact
    TechHelp: 599cd.com/Tech...
    Paid TechHelp Questions: 599cd.com/Tech...
    Consulting Help: 599cd.com/Cons...
    Twitter: / learningaccess
    en.wikipedia.o...
    products.offic...
    microsoft.com/...
    KEYWORDS:
    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
    QUESTIONS:
    Please feel free to post your questions or comments below. Thanks.

ความคิดเห็น • 16