I can understand you may think it ought to be, in an ideal world possibly, but I expect you understand better now. NEVER OPEN THE FORM DIRECTLY, as there is now way to close it again:) I then have the following routine in a global module Then anywhere in my code, if I want to display a message, whilst the code continues to run, I just type MESS "Please display this message" and then when the code has finished MESS "Off" (This is critical else the only way to contine is to abort access) For safety sake, I always have MESS "Off" in my error handler routine. Otherwise, in such cases where everything is disabled in order to give higher control and security, put in a back-door within the form itself.I don't know whether this helps, but I have a function "MESS" that I use in all my databases. I have a small form, with all controls disabled, called fdlg Message. Generally though, either of the first two methods should work.
I don't know why I'm having problems with such a simple problem. Tom, I decided this was an important question that many people might benefit from knowing more about, so I wrote an article to cover it in some depth (Progress Indicator in Access). As with most times people decide the problem should be simple before they understand the issues, this is not remotely a simple one.
I want to display a message on the screen while a process is going on then turn it off when process is complete. I can understand you may think it ought to be, in an ideal world possibly, but I expect you understand better now.
The code below loops through all the controls on a form and locates the labels that have a tab page as their parent. Close ac Form, str Form Name, ac Save Yes End If End Function Private Function Parent Is Tab Page(ctl As Control) As Boolean On Error Resume Next Parent Is Tab Page = (ctl. Control Type = ac Page) End Function Function Fix All Forms() Passing the mouse over the label attached to an option group also causes the items in the group to flicker.
It changes the Control Type to text box, assigns the label's Caption to the text box's Control Source, and sets the Enabled, Locked, and Back Color so the text box looks and behaves like a label. This is not handled by the code above, since 1) it is a lesser issue, and 2) converting the group's label could disable a shortcut key.
There are two ways that you can refresh the subform whenever the record in the main form changes: When you're using forms and subforms in Access, generally you link your form to your subform with one or more fields. In our example, we have a form called Orders that has a subform called "Order Details".