K
Karen
I created a query to remove results from three fields that contain certain
text. This text is can be two variations, with or without a dash. When I
add the criteria to the third field (Address1), I don't get the correct
results.
I pulled up the sql view and this is the statement:
SELECT LastName, OfficeName, Address1, FROM Doctors
WHERE (((LastName) Not Like "*Xxx-Xxxx*" Or (LastName) Not Like
"*Xxxxxxx*")) OR (((OfficeName) Not Like "*Xxx-Xxxx*" Or (OfficeName) Not
Like "* Xxxxxxx *")) OR (((Address1) Not Like "*Xxx-Xxxx*" Or (Address1) Not
Like "*Xxxxxxx*"));
I am not sure how to write the expression for each of those three fields.
text. This text is can be two variations, with or without a dash. When I
add the criteria to the third field (Address1), I don't get the correct
results.
I pulled up the sql view and this is the statement:
SELECT LastName, OfficeName, Address1, FROM Doctors
WHERE (((LastName) Not Like "*Xxx-Xxxx*" Or (LastName) Not Like
"*Xxxxxxx*")) OR (((OfficeName) Not Like "*Xxx-Xxxx*" Or (OfficeName) Not
Like "* Xxxxxxx *")) OR (((Address1) Not Like "*Xxx-Xxxx*" Or (Address1) Not
Like "*Xxxxxxx*"));
I am not sure how to write the expression for each of those three fields.