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

displaying message while executing procedure 2

Status
Not open for further replies.

sfenx

Programmer
Feb 23, 2001
81
BE
What's the easiest way to display a message during a procedure (and closing it when the procedure is done) ?(without buttoms)
 
I like to use a special no-border popup form to which I pass the message via OpenArgs:
DoCmd.OpenForm "InfoBox", , , , , , vbCrLf & "Please wait..."
DoEvents

The DoEvents helps ensure that the form has a chance to appear before your subsequent code starts eating up all the CPU time.

When you're done, just close it with:
DoCmd.Close acForm, "InfoBox"

You can even get fancy and let the InfoBox form figure out how to center the message vertically.
Rick Sprague
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top