No msgbox

  • Thread starter Thread starter Anthony
  • Start date Start date
A

Anthony

I currently have a button which runs a macro to close MS
ACCESS. When clicked, a msgbox appears asking the user to
confirm. What i want to happen is if the user
clicks 'yes' the application shuts down, but if the user
says 'no' then just close the msgbox.

What currently happens is if you select 'no' another
message box appears. I want this NOT to be there.

Here is currently what i have.

Condition Action
MsgBox("Are you sure?",4+32+256)=7 | Msgbox
.... | StopMacro
| Quit

Thanks in advance for your help
 
Anthony,

It seems to me that your macro is more complex than you need. Doesn't
it do what you want like this?...

Condition Action
MsgBox("Are you sure?",4+32+256)=6 | Quit
 
Steve,
Thanks for that.
The simple answer is always the best. When your mind
thinks in the most complex matter its often easy to
overlook the simple answer

Thanks again
Anthony
 
Back
Top