Hank.School
Registered User.
- Local time
- Today, 10:08
- Joined
- Oct 14, 2016
- Messages
- 39
Hello everyone,
I have a form that uses a search example from John Big Booty (which works flawlessly, thanks John!) that populates a list box with search results as a user types. I would like to take it a step further and populate text boxes on the same form with the currently selected record in the list box.
The code for the original example is in the Sample Database forum titled 'Dynamically search multiple fields', sorry, can't post links yet.
Basically, it uses a List box which is populated from a query. The query criteria comes from a text box and updates with the text box's On Change event.
What I am trying to figure out is how can I reference the record selected in the list box to populate the new text boxes from the table. I guess I would do this in the List Box's On Click event but would prefer a 'on selection change' event so whatever is selected is displayed. I can set the Text Boxes to the field names but I can't reference one particular (selected) record.
Any help would be appreciated! Thanks
Hank
I have a form that uses a search example from John Big Booty (which works flawlessly, thanks John!) that populates a list box with search results as a user types. I would like to take it a step further and populate text boxes on the same form with the currently selected record in the list box.
The code for the original example is in the Sample Database forum titled 'Dynamically search multiple fields', sorry, can't post links yet.
Basically, it uses a List box which is populated from a query. The query criteria comes from a text box and updates with the text box's On Change event.
What I am trying to figure out is how can I reference the record selected in the list box to populate the new text boxes from the table. I guess I would do this in the List Box's On Click event but would prefer a 'on selection change' event so whatever is selected is displayed. I can set the Text Boxes to the field names but I can't reference one particular (selected) record.
Any help would be appreciated! Thanks
Hank