M
Max Moor
Hi All,
I want to enumerate through all the forms in my database (then
enumerate the controls and set some properties.). I used the syntax:
Dim frm As Form
Dim ctl As Control
For Each frm In Application.Forms
For Each ctl In frm.Controls
With ctl
etc
etc
etc
This only seems to go through the forms that are open, though.
(maybe) I suppose that since I'm setting control properties, having the
form open in design view might be a requirement anyway. So, I have to
ask...
Is there syntax to enumerate through all forms in the database, open
or not? Or, is this code already doing so, and I just only see the changes
on the open forms, because they DO have to be open to change the control
properties?
Thanks for helping me past my latest curiosity...
- Max
I want to enumerate through all the forms in my database (then
enumerate the controls and set some properties.). I used the syntax:
Dim frm As Form
Dim ctl As Control
For Each frm In Application.Forms
For Each ctl In frm.Controls
With ctl
etc
etc
etc
This only seems to go through the forms that are open, though.
(maybe) I suppose that since I'm setting control properties, having the
form open in design view might be a requirement anyway. So, I have to
ask...
Is there syntax to enumerate through all forms in the database, open
or not? Or, is this code already doing so, and I just only see the changes
on the open forms, because they DO have to be open to change the control
properties?
Thanks for helping me past my latest curiosity...
- Max