Reading a listbox

davesmith202

Employee of Access World
Local time
Today, 14:02
Joined
Jul 20, 2001
Messages
522
I have a listbox lsQuestions where if I click a command button, the item selected in my listbox should copy columns 2 and 3 to textbox Name and Address.

How can I do this?

Thanks,

Dave
 
This should do what you want
Code:
me.txtName = lsQuestions.column(2)
me.txtAddress = lsQuestions.column(3)
Just remember the columns start at 0

I hope this has helped

Satal :)
 
Thanks Satal!
 

Users who are viewing this thread

Back
Top Bottom