How can I add items to combo box without using ";"

J

Jareckipw

Thanks for your help

But in Access 2003's help about List property
there is only an example how can I add items to combo box, which have only
one column:

with mycontrol
.additem Text:="String1", Index:=1
.additem Text:="String2", Index:=2
end with

so it will be that:

|string1|
|string2|

I can add items to combo, which have one columns, but what about
multicolumns.
----------------------------------------------------
but I would like to have below structure in combo box:

|string1|string2|string3| - first line
|string4|string5|string6| - second line

there isn't any example in help in Access 2003

now I use that code:

combo_name.additem "string1" + ";" + "string2" + ";" + "string3"
combo_name.additem "string4" + ";" + "string5" + ";" + "string6"

what about in case if at least one string will be contained ";"
for example :
"stri;ng2"

combo's structure will be following:

|string1|stri |ng2 | - first line
|string3|string4|string5| - second line
|string6| | | - third line

please any suggestions
 
A

Anand.V.V.N

Hi Jareckipw,

I hope this is helpful, insted of useing ";" try using "," or any other
character that will not be a part of the string.

Hope this is what you were looking for.

Anand
 

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