J
Johnny
Hi . I have a query that delivers fields from my table. But I need to filter
on two words in one field. The SQL for 1 expression looks as follows:
SELECT TABLE.ID, TABLE.E, TABLE.G, TABLE.Q, TABLE.V, TABLE.X
FROM
WHERE (((TABLE.E)="1") AND ((TABLE.G)="Type") AND ((TABLE.Q) Like "*Job
Close*") AND ((TABLE.V)="Dispatch") AND ((TABLE.X)<>"Telephone"));
This works fine. When I add a Or to my Table.X field I get the following
SELECT TABLE.ID, TABLE.E, TABLE.G, TABLE.Q, TABLE.V, TABLE.X
FROM
WHERE (((TABLE.E)="1") AND ((TABLE.G)="Type") AND ((TABLE.Q) Like "*Job
Close*") AND ((TABLE.V)="Dispatch") AND ((TABLE.X)<>"Telephone" Or
(TABLE.X)="Customer"));
This now returns records containing both the words I am trying to filter out
in my Query (Telephone & Customer). Any idea where I am going wrong?
on two words in one field. The SQL for 1 expression looks as follows:
SELECT TABLE.ID, TABLE.E, TABLE.G, TABLE.Q, TABLE.V, TABLE.X
FROM
WHERE (((TABLE.E)="1") AND ((TABLE.G)="Type") AND ((TABLE.Q) Like "*Job
Close*") AND ((TABLE.V)="Dispatch") AND ((TABLE.X)<>"Telephone"));
This works fine. When I add a Or to my Table.X field I get the following
SELECT TABLE.ID, TABLE.E, TABLE.G, TABLE.Q, TABLE.V, TABLE.X
FROM
WHERE (((TABLE.E)="1") AND ((TABLE.G)="Type") AND ((TABLE.Q) Like "*Job
Close*") AND ((TABLE.V)="Dispatch") AND ((TABLE.X)<>"Telephone" Or
(TABLE.X)="Customer"));
This now returns records containing both the words I am trying to filter out
in my Query (Telephone & Customer). Any idea where I am going wrong?