Using AddItem On Combobox and list box

R

Roy Goldhammer

Hello there

I've foud out that on access 2003 as diffrent from access 2000 i can use
AddItem Method like VB to add new item to listbox or combobox.

It works fine when the the column count is 1 but it doesn't shows anything
when i'm using muli colums. (most of my comboboxes are like this)

is there another way to use AddItem Method?

--
øåòé âåìãäîø
ù.î. òúéã äðãñú úåëðä
(e-mail address removed)
èì: 03-5611606
ôìà' 050-7709399
 
R

rkc

Roy said:
Hello there

I've foud out that on access 2003 as diffrent from access 2000 i can use
AddItem Method like VB to add new item to listbox or combobox.

It works fine when the the column count is 1 but it doesn't shows anything
when i'm using muli colums. (most of my comboboxes are like this)


Column count = 2

..AddItem "Rolling Stones; Back Of My Hand"

result:

Rolling Stones | Back Of My Hand

Strings that contain commas or semi-colons must be delimited by
quotes

..AddItem "Rolling Stones;" & _
Chr$(34)& "Good Times, Bad Times" & Chr$(34)

result:

Rolling Stones | Good Times, Bad Times
 

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

Similar Threads

Using Format for textboxes 1
Error 1104 1
Using Terminal with access 3
Get Data from source safe 4
Merging two Tif files to one file 5
Getting excel Sheets 1
Waiting for finish Shell Function 1
error 3709 3

Top