"Program Running" Message

M

Matt

I have an Access form with code attached to a "run" botton. The program takes
awhile to finish so I want a message such as "Program Running, Stand By" to
be displayed untill the program is complete. How do I do it?
 
G

George Nicholson

Dim varSysCmdRef As Variant

varSysCmdRef = SysCmd(acSysCmdSetStatus, "Processing, Please Wait....")
.... when done
varSysCmdRef = SysCmd(acSysCmdSetStatus, " ")

You don't do anything with varSysCmdRef. SysCmd() requires an assignment to
a Variant variable.

And, for reinforcement, there is always:
DoCmd.Hourglass True
DoCmd.Hourglass False

HTH,
 

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