Can I close a message box after a timed interval?

R

Robin Chapple

I have a database that provides me with RTF reports in Word. I use a
message box to confirm that the operation was successful.

Can I time it to close after say 5 seconds?

Thanks,

Robin
 
N

Nikos Yannacopoulos

Robin,

Instead of a standard message box, you can use a simple form with only one
label displaying the message, and set a timer event on it to sloe it after
5000 msec.
Play with the forms properties to not display contol box, record selectors,
dividing lines, navigation buttons and the like.

HTH,
Nikos
 
V

Van T. Dinh

Create your own "Message" Form and use the Timer Event of the Form to close
itself.
 
R

Robin Chapple

Thanks Nikos, and Van

That works well. I made them as pop ups.

I needed two and now one appears tight oin the top left corner of the
screen ans the other appears over the data, I would prefer that they
were the same. I cannot see any options that will move them

Thanks,

Robin
 
V

Van T. Dinh

You can use the MoveSize Method of the DoCmd object.

See Access VB(A) Help on MoveSize.
 

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