D
Domac
I would like to enumerate all forms in my Db.
No matter if it is open or closed.
Thanks!
No matter if it is open or closed.
Thanks!
Domac said:I would like to enumerate all forms in my Db.
No matter if it is open or closed.
Arvin Meyer said:For i = 0 To contr.Documents.Count - 1
StrFormName = contr.Documents(i).name
Arvin, what does one do to get form object references,
miguel said:I figured it out. It would be Forms(strFormName).
Douglas J. Steele said:Yes, but note that you can only do that if the form is already open, as the
Forms collection only contains open forms.
miguel said:Right. In my immediate case, open form also is required by the operations
that demand object reference.
I imagine that some operations that demand object reference may not
require
open form, in which case I would prefer to provide a form reference that
does
not depend on open state. What would be the reference syntax then?
Douglas J. Steele said:no other way but to open the form and refer to it using
the syntax you've already determine.