IF the list is short you could use
WHERE (Employee In (1229,1258,3999) and Code = "NT") OR Employee Not In
(1229,1258,3999)
If the list is long and you have it in a table then you could use logic like
WHERE (Employee in (SELECT ID From TableHideThese) AND Code = "NT") OR
Employee In (SELECT T.ID
FROM MainTable LEFT JOIN TableHideThese
as T
ON MainTable.Employee = T.Employee
WHERE T.Employee is Null)
> Yes....it is becuase there are all kinds of other records that need to be
> displayed.....Of the records that have "NT" in the CODE field (and only
[quoted text clipped - 45 lines]
>> >the
>> >QUERY.....If
Warren Phillips - 18 Oct 2006 14:30 GMT
John:
Thank you
It is a short list.....where would I put this CODE within the QUERY to get
it to work????
WHERE (Employee In (1229,1258,3999) and Code = "NT") OR Employee Not In
(1229,1258,3999)
> IF the list is short you could use
>
[quoted text clipped - 59 lines]
> >> >the
> >> >QUERY.....If
John Spencer - 18 Oct 2006 15:36 GMT
Assuming you are using the query grid
Field: Employee
Criteria (Line 1): In (1229,1258,3999)
Criteria (Line 2): Not In (1229,1258,3999)
Field: Code
Criteria (Line 1): "NT"
Criteria (Line 2): <<Leave this blank>>
> John:
>
[quoted text clipped - 76 lines]
>> >> >the
>> >> >QUERY.....If