Combo Box RowSource

R

Rob Renner

I am trying to display a list of all the databases forms
in a combobox. Unfortunatly I cannot figure out how to
display the list.

Thanks for your help.
 
H

hansford cornett

-----Original Message-----
I am trying to display a list of all the databases forms
in a combobox. Unfortunatly I cannot figure out how to
display the list.

Thanks for your help.
.
Use the systems combo box wizard. In this you can select
the unique table that contains the information you desire
to present in your combo box and you may display more than
one column if you desire...
 
P

Pavel Romashkin

It is probably not the most elegant solution but it works:

Public function FrmList() as string
Dim Frm as Variant
For each Frm in CurrentProject.AllForms
FrmList = FrmList & Frm.Name & ";"
Next Frm
Set Frm = Nothing
end

In the Form Load event:

Me.MyCombo.RowSourceType = "Value list"
Me.MyCombo.RowSource = FrmList()

Someone might suggest a callback function but there is no way I can
remember the format of that off the top of my head.
Cheers,
Pavel
 

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