values of column property for a list box

G

Goldar

I need to get the column property values that have been selected from a two
column listbox. I try to get the column property values for the selected row
in the afterUpdate code for the list boxbut once the box has lost focus, all
the column values come back as null. What am I doing wrong?

Thanks
 
M

Marshall Barton

Goldar said:
I need to get the column property values that have been selected from a two
column listbox. I try to get the column property values for the selected row
in the afterUpdate code for the list boxbut once the box has lost focus, all
the column values come back as null. What am I doing wrong?


Can't tell what you did wrong without seeing what you did
;-)

If it's a single select list box, there is only one value
and it is the list box's Value property.

If it's a multi select list box then you need to loop
through the list box's ItemsSelected collection and get the
value if the selected rows using the Column property.
 
G

Goldar

A further examination of my VBA code revealed my problem that was easily
corrected. Thanks for your help.
 

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