G
Guest
Is there a way to populate a list box with the names of all the forms in a
database? I have done this for the tables, but can't seem to find a way to
do this for the forms. Here is the code I used for the tables.
Me.lstTables.RowSourceType = "Value List"
Me.lstTables.RowSource = ""
For i = 0 To CurrentDb.TableDefs.Count - 1
strAddList = CurrentDb.TableDefs(i).Name
If Left(strAddList, 4) <> "mSys" Then
Me.lstTables.AddItem strAddList
End If
Next
Me.lstTables.AddItem "All"
Is there something similar for forms? I am using Access 2002.
database? I have done this for the tables, but can't seem to find a way to
do this for the forms. Here is the code I used for the tables.
Me.lstTables.RowSourceType = "Value List"
Me.lstTables.RowSource = ""
For i = 0 To CurrentDb.TableDefs.Count - 1
strAddList = CurrentDb.TableDefs(i).Name
If Left(strAddList, 4) <> "mSys" Then
Me.lstTables.AddItem strAddList
End If
Next
Me.lstTables.AddItem "All"
Is there something similar for forms? I am using Access 2002.