Unhide All Hidden Forms (?)

D

Dirk Goldgar

croy said:
Is there a command for unhiding all hidden forms?


No built-in command that I know of, but here's a simple sub to do it:

'------ start of code ------
Sub ShowAllHiddenForms()

Dim frm As Access.Form

For Each frm In Forms
If frm.Visible = False Then
frm.Visible = True
End If
Next frm

End Sub
'------ end of code ------
 
J

Jack Leach

Dim frm As Form
For Each frm In Forms
frm.Visible = True
Next
Set frm = Nothing


hth
--
Jack Leach
www.tristatemachine.com

"I haven''t failed, I''ve found ten thousand ways that don''t work."
-Thomas Edison (1847-1931)
 
C

croy

No built-in command that I know of, but here's a simple sub to do it:

'------ start of code ------
Sub ShowAllHiddenForms()

Dim frm As Access.Form

For Each frm In Forms
If frm.Visible = False Then
frm.Visible = True
End If
Next frm

End Sub
'------ end of code ------


Thank you sir!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top