Closing a form that isn't open :| (1 Viewer)

DarkAngel

Registered User.
Local time
Today, 09:42
Joined
Jul 3, 2007
Messages
21
I have a form that is open, and needs to be closed at certain point in certain macros. However, sometimes the form is already closed when the macro calls for it to be closed. Can I just do something to ignore the error message saying the form can't be found, or is there a way of putting a condition to only close it if it's actually open?
Cheers,
Paul
 

KeithG

AWF VIP
Local time
Today, 01:42
Joined
Mar 23, 2006
Messages
2,592
I think you would have to use VBA to do this.
 

DarkAngel

Registered User.
Local time
Today, 09:42
Joined
Jul 3, 2007
Messages
21
In the best possible tradition of using duct tape to fixa problem, I just closed the form at the start of all the macro running, and just copied the data needed on the form to text boxes on the main menu (which remains static)

May be a botch job, but no-one's going to look at the workings of it until I'm long gone! :D
 

Users who are viewing this thread

Top Bottom