K
kpick4
I am converting an Oracle database to Access. When recreating my queries I
cannot figure out the syntax for the LIKE expression.
Oracle:
SELECT ORDNUM, CUST_LNAME, SALE_DATE
FROM ORDERS
WHERE UPDATED_BY LIKE '%APRIL%';
Access:
SELECT orders.ORDNUM, orders.CUST_LNAME, orders.SALE_DATE
FROM orders
WHERE (((orders.UPDATED_BY) like "% APRIL %"));
I have hacked the syntax in every way I can think of using information from
various posts on this web site but it always returns zero rows. No errors,
but no data either. I have verified the data is in the table. Microsoft
says to use the % symbol instead of the * for Access 2007.
cannot figure out the syntax for the LIKE expression.
Oracle:
SELECT ORDNUM, CUST_LNAME, SALE_DATE
FROM ORDERS
WHERE UPDATED_BY LIKE '%APRIL%';
Access:
SELECT orders.ORDNUM, orders.CUST_LNAME, orders.SALE_DATE
FROM orders
WHERE (((orders.UPDATED_BY) like "% APRIL %"));
I have hacked the syntax in every way I can think of using information from
various posts on this web site but it always returns zero rows. No errors,
but no data either. I have verified the data is in the table. Microsoft
says to use the % symbol instead of the * for Access 2007.