Hi,
I want to perform the SQL statement below in a Base macro
SELECT "Country Code", "Postcodes", "Zone" FROM "tblZone" WHERE "Country Code" = 'GB' AND "Postcodes" LIKE '%WA%'
The Country Code and Postcodes criteria are coming from a form so variables will be used… In basic this will result in something like this:
stSQL = "SELECT ""Country Code"", ""Postcodes"", ""Zone"" FROM ""tblZone"" WHERE ""Country Code"" = '"+ccode+"' AND ""Postcodes"" LIKE '%"+DestPC+"%'"
I’m having trouble to get the right notation for the LIKE operator. The Statement before the LIKE operator works fine.
How do I get the LIKE operator to work??