I can reference a query in a back-end database with this code in the row source of my list box on the front-end, but can i filter this back-end query from a textbox situated on the front-end form?
front-end database = pisprg.accdb
the front-end form = Home
front-end textbox = sub-district
the query in backend -
Any suggestions please?
Code:
SELECT qrylistpatients1.* FROM qrylistpatients1 IN 'C:\pisprg\PISData.accdb';
the front-end form = Home
front-end textbox = sub-district
the query in backend -
Code:
SELECT qryListPatients.Surname, qryListPatients.Initials, qryListPatients.FirstName, qryListPatients.Gender, qryListPatients.IDNo, tblFacility.FacilityName, qryListPatients.FileNo, qryListPatients.ClientID, tblFacility.[Sub-District] FROM qryListPatients LEFT JOIN tblFacility ON qryListPatients.Facilityname = tblFacility.FacilityID ORDER BY qryListPatients.Surname, qryListPatients.Initials;
Comment