Reading Form Properties

J

Joe Delphi

Hello,

I want to loop through all of the forms in my MS Access project and check to
see if a certain property is NULL. I want to do something like this
pseudo-code:

For i = 1 to CurrentProject.AllForms.Count - 1
If Form.ServerFilter Is Null Then
put form name into a list
Next i


But I don't know how to read the ServerFilter property of the form
programmatically.

Any help appreciated.

JD
 
O

Ofer

I hope that will provide you with a starting point

Dim i As Integer, frmName As String
For i = 1 To CurrentDb.Containers("forms").Documents.Count
frmName = CurrentDb.Containers("forms").Documents(i).Name
DoCmd.OpenForm frmName, acDesign
If IsNull(Application.Forms(frmName).ServerFilter Then
' Your code
End If
DoCmd.Close acForm, frmName
Next i
 

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

Top