Question : MS access populating search result into listbox and transfer selected id to a textbox

Hi, I am trying to achive a search, When i enter the to search for a member's name it will return a few names that is almost similar, so when i click on the listbox item, the membersID will automatically be on the MemberID text box. I have also coded the textbox after update with a function. I have attached a detail screenshot to explain the problem.

I have tried a few ways, but i am still getting some errors, I hope someone can advice me on what i am lacking, and how should i proceed?

Answer : MS access populating search result into listbox and transfer selected id to a textbox

applefruit,
because you added something that is not in what i posted

me.memberID=me.listboxmemberDetails.column(0)

is not the same as

me.memberID.text=me.listboxmemberDetails.column(0)

remove the .text
Random Solutions  
 
programming4us programming4us