While looking for a way to check for all open forms, there were references to
1.If CurrentProject.AllForms("YourFormName").IsLoaded = True Then
2. Dim obj As AccessObject, dbs As Object
Set dbs = Application.CurrentProject
For Each obj In dbs.AllForms
If obj.IsLoaded = True Then ' Print name of obj.
The first one did not recognize all forms a loaded, even though they were clearly visible on screen BUT the second one worked find even though constructs are very similar.
Could you please let me know what I have missed?
a. Both have CurrentProject in syntax – not sure what that means as I have not explicitly defined a project - I would not know how to
b. Some web sites referred to form mode eg Design – does that have any relevance to syntax?