david.paton
Registered User.
- Local time
- Today, 15:38
- Joined
- Jun 26, 2013
- Messages
- 338
I have a form to search through a database and on the form, a listbox with row source:
“SELECT QRY_SearchAll.WidowID, QRY_SearchAll.WidowName, QRY_SearchAll.WidowStreetAddress, QRY_SearchAll.WidowPhone, QRY_SearchAll.WidowMobile, QRY_SearchAll.WidowDOB, QRY_SearchAll.tblDivisionsTown, QRY_SearchAll.PTAbbreviation, QRY_SearchAll.AccomDescription, QRY_SearchAll.WidowNOK, QRY_SearchAll.WidowNOKPhone, QRY_SearchAll.WidowNOKMobile, QRY_SearchAll.WidowNOKStreetAddress FROM QRY_SearchAll;”
And the qry_SearchAll has the criteria “Like "*" & [forms]![FRM_SearchMulti]![SrchText] & "*"” for each field I wanted searched and it searches through fields in a database as text is typed into a text box. Before you start typing, the list box is full of every record but narrows as you type. When I locate the record I am looking for, once selected, how do I open the data entry form to edit the information?
“SELECT QRY_SearchAll.WidowID, QRY_SearchAll.WidowName, QRY_SearchAll.WidowStreetAddress, QRY_SearchAll.WidowPhone, QRY_SearchAll.WidowMobile, QRY_SearchAll.WidowDOB, QRY_SearchAll.tblDivisionsTown, QRY_SearchAll.PTAbbreviation, QRY_SearchAll.AccomDescription, QRY_SearchAll.WidowNOK, QRY_SearchAll.WidowNOKPhone, QRY_SearchAll.WidowNOKMobile, QRY_SearchAll.WidowNOKStreetAddress FROM QRY_SearchAll;”
And the qry_SearchAll has the criteria “Like "*" & [forms]![FRM_SearchMulti]![SrchText] & "*"” for each field I wanted searched and it searches through fields in a database as text is typed into a text box. Before you start typing, the list box is full of every record but narrows as you type. When I locate the record I am looking for, once selected, how do I open the data entry form to edit the information?