List Boxes

  • Thread starter Thread starter Kelv
  • Start date Start date
K

Kelv

Hi, I have a list box with several columns and the Rowsource is a query. I
would like to pass into variables the information contained in each column
of the selected row in the list box. Is there a way to accomplish this?

Using Access 2003 but the DB is 2000.

Thanks,

Kelv
 
Assuming the listbox is set up not to allow multiselect, in its AfterUpdate
event, put code like:

strId = Me.MyListbox.Column(0)
strName = Me.MyListbox.Column(1)
strAddress = Me.MyListbox.Column(2)
 

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