I have a form that is bound to a query. I would like to select a specific record on the form where the values of three of the query fields, e.g., A, B and C, are equal to the values of three combo boxes on the form.
Try this SQL example. Update with your table name and field names: Select A.*
FROM tblYourTableName as A
WHERE ((A.A = [Forms]![frmYourFormName]![ComboA]) AND
(A.B = [Forms]![frmYourFormName]![ComboB]) AND
(A.C = [Forms]![frmYourFormName]![ComboC]));
This will select the records using the values from the combobox's.
Bob Scriver Want the best answers? See FAQ181-2886 Nobody believes the official spokesman... but everybody trusts an unidentified source.
Author, Bagdad Bob???
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.