How can I manipulate properties for closed forms? I’ve tried using the properties of the allforms access object, in a variety of different ways, but it seems that although the online help suggests this collection contains both built in and user defined properties, using the following code to try and enumerate the properties produces no output (ie each form has no associated properties). Enumerating the contents of AllForms does behave as expected however.
Dim obj As AccessObject, i As Integer, pty As AccessObjectProperty
‘On Error Resume Next
For i = 1 To 20
For Each pty In CurrentProject.AllForms(i).Properties
Debug.Print CurrentProject.AllForms(i).Name; “:”; pty.Name
Next pty
Next i