How to put a message box & have the user not close it?

J

Juan

Is it possible to put a message box out for say at the
beginning of a sub and then have it be close by the end of
the sub? But I don't want the user to be able to close
the message box. I want the message box to be told with
code to close when it is about to get out the sub. I am
coding in VBA.

Thanks
 
D

Dev Ashish

Is it possible to put a message box out for say at the
beginning of a sub and then have it be close by the end of
the sub?

Not directly with the built-in MsgBox function. You'll have to create your
own form to represent the Message Box; open the form at the start of the
proc, and close it with Docmd.Close acForm call in error handling code and
at the end of the proc.

-- Dev
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top