How to manually populate a Listbox?

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

Guest

I have a 4-column listbox that I want to MANUALLY place values into via a SQL
lookup. So I issue the SQL command, and if I have 4 rows returned, I end up
with four rows in the Listbox. But I use VB to issue the query and populate
the Listbox.

How may I do that?

Thanks!
 
Additional information:

My listbox has three columns. I want to populate each column with a field
from the record selected.
 
I have a 4-column listbox that I want to MANUALLY place values into via a SQL
lookup. So I issue the SQL command, and if I have 4 rows returned, I end up
with four rows in the Listbox. But I use VB to issue the query and populate
the Listbox.

How may I do that?

Thanks!

Why go all the way around the barn?

Just set the listbox's RowSource property to the SQL string. You end
up with exactly the same result, unless I'm completely
misunderstanding your meaning.

John W. Vinson[MVP]
 

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