Combo Box question...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a combo box where I want to programmatically set the values. In
Access 2003 it's easy. cboBox.AddItem, however in Access 2000 that isn't an
option. I
know that this is possible, but for the life of me I can't remember how to
do it.

Any assistance would be greatly appreciated.

Thanks.
 
Joe said:
I have a combo box where I want to programmatically set the values.
In Access 2003 it's easy. cboBox.AddItem, however in Access 2000
that isn't an option. I
know that this is possible, but for the life of me I can't remember
how to do it.

If the combo's RowSourceType property is "Value List" (as would be
required to use AddItem in A2003), you can set the RowSource directly to
a delimited string. For example,

Me!MyCombo.RowSource = "Item 1;Item 2;Item 3"

But if a combo's list might change at run time, I prefer to use a table
or query for the rowsource.
 

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