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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Option to Halt a Macro?

Status
Not open for further replies.

ShellyL

Technical User
Mar 30, 2004
24
US
Is there a way to give the user an option to halt a macro? The first step of the macro will be a MsgBox warning “you are about to update…”. Then I’d like a yes/no “are you sure?” box to pop-up. If user clicks no, the macro ends. If yes, it continues. I don’t want the user to have to click ‘no’ through a dozen subsequent warning boxes that Access automatically gives if they initiated the update macro by mistake!
 
you could split it into 2 macros

macro1 call a function that is in a module that show a msg box

if user click yes then call macro 2

jb
 
Thanks. I've never worked with modules or any VB before. I was hoping there was a simple macro option somewhere. Oh well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top