Setting all loaded forms to visible=no when a report is opened

MarionD

Registered User.
Local time
Today, 07:43
Joined
Oct 10, 2000
Messages
425
Hi there,

I'd like to write a function that puts the visble property of all loaded forms to False when a report is opened (on the on open of all my reports) and sets the property back to visible=true when the report is closed (the on close of all reports)

Can anyone help me here?

Thanks
Marion
 
Dim frm As Form
For Each frm In Forms
frm.Visible = False
frm.Modal = False
Next
 
Thanks Rich!
 

Users who are viewing this thread

Back
Top Bottom