Msgbox, Access 2003

C

Chai

How do I display a message using Msgbox() for a specified length of time,
say, 5 seconds, without having the "Okay" button to click and having the
message box disappear by itself? Thanks.

Chai
 
D

Dennis

I don't think you can, but you can create your own form and set the timer
interval property to something like 5000 and then in the on timer event put
the code
DoCmd.Close
Instead of using MsgBox you can use DoCmd.Openform "YourMessageBoxForm"
and it will close when the 5000 milliseconds have elapsed.
 
K

Keith Wilby

Chai said:
How do I display a message using Msgbox() for a specified length of time,
say, 5 seconds, without having the "Okay" button to click and having the
message box disappear by itself? Thanks.

Chai

AFAIK you can't, but you can fake it by using a form as a dialog box and use
the timer event to close it.

Regards,
Keith.
www.keithwilby.com
 

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