Muliplte fields in SQL WHERE statement

BrianFawcett

Registered User.
Local time
Yesterday, 22:05
Joined
May 3, 2010
Messages
63
I am writing a query where my WHERE statement has a combo box which contains two fields for the same table in it. How do I writre the WHERE statement to inclde two fields, I tried different thing but cannot get the first half of it to work:

WHERE(field1 + field 2) = Forms!mainForm!cbSupplier

The two field are tblSuppliers.SupplierCode and tblSuppliers.SupplierName
 
if cbsupplier is a combo box with a bound column, you will only need to do the one supplier code. It is not necessary to do both code and name since they are tied to each other in the table, presumably of course.
 

Users who are viewing this thread

Back
Top Bottom