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

Block a command button

Status
Not open for further replies.

mrsshap

Programmer
Mar 6, 2001
2
US
I have a module that is executed by a command button. While this module is running, I would like to know how to keep all other users out until it is finished.

I would really appreciate any ideas or suggestions someone might have.
 
I just don't want them to be able to execute the code behind the command button until the module is finished.

 
Hi,

You can disable the command button once the process is started by setting the command button's ENABLED property to false. This way once the button has been clicked the button is disabled and people can click on it all they want but it won't trigger the click ervent. Ber sure to set the enabled property back to true at the end of the process.

Have a good one!
BK
 
Turn the hour glass on and off to let the user know that work in in progress:

docmd.hourglass true

your code

docmd.hourglass false

You can also let the user know what is going on by filling the status bar at the bottom of the windows window. check Syscmd in the Help menu to see how this is used.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top