Assigning valuse to Combo Box

  • Thread starter Eddie's Bakery and Cafe'
  • Start date
E

Eddie's Bakery and Cafe'

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
 
D

Douglas J. Steele

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

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

Eddie's Bakery and Cafe'

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
 
Top