List Box Columns

P

Pwyd

How does one programmatically assign something to the second column of a
listbox?

I was going to use a combo box, and set its after update property in order
to run a query that puts a pair of counts in a seperate listbox, filtering
for only those records associated with whats contained in the combo box.
 
D

Dale Fye

I generally use queries as the RowSource for my listboxes, but you can set
the RowSourceType to "ValueList". Then use the additem method to add items
to the list. The key to this is if you want the list to be multi-columned,
you need to concatenate the various column values (use the semicolon as the
column seperator) into a single string for the additem method

me.lst_Something.AddItem "1; This is the text in column 2; Column3"

--
HTH
Dale

Don''t forget to rate the post if it was helpful!

email address is invalid
Please reply to newsgroup only.
 

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