crosmill
09-20-2001, 07:05 AM
Does anyone know how to display a mesage box to say that a macro is running, while the macro is running.
|
View Full Version : MsgBox crosmill 09-20-2001, 07:05 AM Does anyone know how to display a mesage box to say that a macro is running, while the macro is running. BukHix 09-20-2001, 10:21 AM Some one will correct me if I am wrong here but I think the only way you could do that is to have a custom made form with the message open at the begining of the macro and then closed at the end. You may have to hide it and then unhide instead of opening and closing it. [This message has been edited by BukHix (edited 09-20-2001).] crosmill 09-21-2001, 09:18 AM Thanks! When I load the form the shell loads but the contents don't. I can't work out how to load the form with the visible property set to 0 and then change it. I've tried to load the form in one macro and set the 'on load' property to run the second macro but the form just doesn't appear, although it does run the second macro. Any sugestions? Travis 09-21-2001, 10:05 AM Easiest way with macros to display a message in the "Status Bar Text" or Bottom of the Access window is to set the first line of the macro to ECHO Leave Echo On = True Set the Message (You are limited to 255 characters) in the Status Bar Text Property. Otherwise go to using code vice macros and you can Use the SysCmd to set up something similar to this. jwindon 09-21-2001, 04:05 PM Hope you don't mind if I chime in here. Create an unbound form. Put some text or whatever you want to say on it...for example...PLEASE WAIT MACRO RUNNING. For this example the name of this form is frmPleaseWait Your macro should read like this... Action: OpenForm FormName: frmPleaseWait WindowMode: Normal Action: now run your actions Last one should be: Action: CloseForm ObjectType: Form ObjectName: frmPleaseWait Save: No That should do it. crosmill 09-24-2001, 02:27 AM Thanks for your help everyone. I got round the the problem of just the shell of the form opening by repainting it straight after I opened it. |