Reading Tag value of Forms

D

DanJ

Does anyone know if it is possible to read the 'tag' property of all forms
using the AllForms collection? I am tryng to add forms to a picklist that
have a 'custom' tag. There are hundreds of forms to check and I would prefer
not to open each one to use the Forms collection to read those that have the
custom tag. The following code produces error 438 Object doesn't support
this property or method:

Dim strObjectList As String
Dim dbs As Object
Dim obj As AccessObject

Set dbs = Application.CurrentProject
For Each obj In dbs.AllForms

If InStr(dbs.AllForms(obj.Name).Tag, "Custom") > 0 Then
strObjectList = strObjectList & obj.Name & ";Form;"
End If


Next obj
.....
 

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