Assigning valuse to Combo Box

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

Guest

Hi, I have defined a Combo Box with 3 columns. I need to assign values to
each column individually. For example, the following psuedo code describes
what I am trying to do.

myComboBox.AddItem[Column 0] = SomeValue 1
myComboBox.AddItem[Column 1] = SomeValue 2
myComboBox.AddItem[Column 2] = SomeValue 3

Any help would be greatly appreciated

Thanks
 
According to the Help file, you separate the values with semicolons:

myComboBox.AddItem "SomeValue 1;SomeValue 2;SomeValue 3"
 
Thanks

Before I posted the message, I was using semicolons but it was not working.
For some reason, it is now working with the semicolons, who knows…

Thanks for your help


Douglas J. Steele said:
According to the Help file, you separate the values with semicolons:

myComboBox.AddItem "SomeValue 1;SomeValue 2;SomeValue 3"

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)



Eddie's Bakery and Cafe' said:
Hi, I have defined a Combo Box with 3 columns. I need to assign values
to
each column individually. For example, the following psuedo code
describes
what I am trying to do.

myComboBox.AddItem[Column 0] = SomeValue 1
myComboBox.AddItem[Column 1] = SomeValue 2
myComboBox.AddItem[Column 2] = SomeValue 3

Any help would be greatly appreciated

Thanks
 

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