Populating combo in Access 2000

  • Thread starter Thread starter Ig
  • Start date Start date
I

Ig

Hi
How to populate combo with names of all forms in the project in Access 2000?
Thanks
 
Private Sub Combo0_Enter()

Dim aob As AccessObject
Dim strList As String

For Each aob In CurrentProject.AllForms
strList = strList & aob.Name & ";"
Next aob
Me!Combo0.RowSourceType = "Value List"
Me!Combo0.RowSource = strList

End Sub
 
Hi
How to populate combo with names of all forms in the project
in Access 2000? Thanks
Set the rowsource to:
SELECT MSysObjects.Name FROM MSysObjects WHERE MSysObjects.Type=-
32768;
 

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

Back
Top