Code:
SELECT Addresses_by_route.ID, Addresses_by_route.Address, Addresses_by_route.Route
FROM Addresses_by_route
WHERE (InStr(1,[Addresses_by_route]![Address],"Douglas",1))>"0";
I took out the extra parentheses in the WHERE clause.
HELP states: INSTR Function "Returns a Variant (Long) specifying the position of the first occurrence of one string within another"
Lets say [Addresses_by_route]![Address] = "404 Douglas Ave". So the Instr function should return 5.
Replacing the Instr function in the Where clause, you would get
Code:
SELECT Addresses_by_route.ID, Addresses_by_route.Address, Addresses_by_route.Route
FROM Addresses_by_route
WHERE 5 > "0";
How can a number 5 be greater than a text 0 (zero)???? Should not be comparing a number to a text string.
Maybe try
Code:
SELECT Addresses_by_route.ID, Addresses_by_route.Address, Addresses_by_route.Route
FROM Addresses_by_route
WHERE (InStr(1,[Addresses_by_route]![Address],"404 Douglas",1))> 0;
No quotes around the Zero.