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.
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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.