Having the same criteria in multiple fields of a query

strKohmM

New member
Local time
Yesterday, 23:36
Joined
Apr 26, 2012
Messages
3
I have a table like the following:

A 101 12/13/2011
101 A 12/4/2012
101 A 12/4/2012
101 B 12/7/2012


I am creating a basic query but looking to retreive the entries when "A" is in field 1 or field 2.

Basically retreive this data:
A 101 12/13/2011
101 A 12/4/2012
101 A 12/4/2012

Any suggestions?
 
You have two options:

WHERE Field1 = "A" OR Field2 = "A"

OR

Concatenate Field1 and Field2 together and search within the concatenated field. The first option is preferred.
 
Is that something I would add in SQL view?
 
That's right. In the Criteria row of the Query grid. Or you can do it directly in the SQL View.
 
In criteria for both fields? Or just one of the fields?
 

Users who are viewing this thread

Back
Top Bottom