Hello all,
I've been trying to loop through all the forms (open and closed) in my database. I've read the help about using the documents collection of the container object, but I can't figure it out. My code (forgive the variable names):
Dim dbs As DAO.Database
Dim a As Container
Dim b As Document
Set dbs = CurrentDb
Set a = dbs.Containers("Forms"
For Each b In a
MsgBox b.Name
Next b
Can anyone tell me how to capture all the form names in an Access97 database?
Thanks...
I've been trying to loop through all the forms (open and closed) in my database. I've read the help about using the documents collection of the container object, but I can't figure it out. My code (forgive the variable names):
Dim dbs As DAO.Database
Dim a As Container
Dim b As Document
Set dbs = CurrentDb
Set a = dbs.Containers("Forms"
For Each b In a
MsgBox b.Name
Next b
Can anyone tell me how to capture all the form names in an Access97 database?
Thanks...