I have the following string:
which behaves as expected (finds records containing: align='center') when run from phpMyAdmin.
However the following in Microsoft Access gives VBA error 3075: Syntax Error (Missing Operator) in Query Expression (eEvent LIKE '%align=\'center\'%')
What am I doing wrong here? (general procedure works fine in other cases)
Code:
SELECT * FROM tbtimes WHERE (eEvent LIKE '%align=\'center\'%') ORDER BY eOrder
which behaves as expected (finds records containing: align='center') when run from phpMyAdmin.
However the following in Microsoft Access gives VBA error 3075: Syntax Error (Missing Operator) in Query Expression (eEvent LIKE '%align=\'center\'%')
Code:
Set rst = dbf.OpenRecordset("SELECT * FROM tbtimes WHERE (eEvent LIKE '%align=\'center\'%') ORDER BY eOrder")
What am I doing wrong here? (general procedure works fine in other cases)