Hi
I want to list my unhidden access forms, reports, in a combo box. this is the piece of code i already use and it works great but it also shows me the hidden objects. I don't know how to exclude the hidden objects.
Please help.
I want to list my unhidden access forms, reports, in a combo box. this is the piece of code i already use and it works great but it also shows me the hidden objects. I don't know how to exclude the hidden objects.
Code:
Private Sub Form_Load()
Call GetList
End Sub
Code:
Public Sub GetList()
Dim Item As AccessObject
For Each Item In CurrentProject.AllForms
DBItem.RowSourceType = "Value List"
DBItem.AddItem Item.Name
Next
End Sub
Comment