Trivium
09-08-2003, 01:03 PM
Alright, I know you can cycle through all the objects on a form, can you cycle through all forms in a project as well? Many thanks in advance for any help...
-Kristopher G. Hollingsworth
00100b
09-08-2003, 01:05 PM
Dim oForm As Form
For Each oForm In Forms
' Do Something
Next
Set oForm = Nothing
Trivium
09-08-2003, 01:13 PM
Dim oForm As Form
For Each oForm In Forms
' Do Something
Next
Set oForm = Nothing
Hey, that almost works, but I only get the first form in the loop, or at least I was... I just threw a msgbox (oform.name) in the loop.
-Kristopher G. Hollingsworth
00100b
09-08-2003, 01:16 PM
The forms do need to be loaded.
Trivium
09-08-2003, 01:19 PM
The forms do need to be loaded.
Ooooh, okay... is there anyway to do it without loading them first? *Grins* I'm assuming not, but I figured I might as well ask.
-Kristopher G. Hollingsworth
00100b
09-08-2003, 01:25 PM
A far as the program is concerned, forms that are not loaded don't exist until loaded.