CombatKing
Programmer
Hello everyone,
I am having problems with a query - I have successfully connected a PHP front end to an Access database, but the following query keeps causing an issue:
The error message is:
The table "fault" exists, and the columns "Started", "Deferred" and "Complete" all exist within the "fault" table.
The query works fine when I send it to an equivalent MySQL database, so I'm also wondering if there is a key difference between MySQL and the version of SQL used by ODBC/Access?
I am having problems with a query - I have successfully connected a PHP front end to an Access database, but the following query keeps causing an issue:
Code:
SELECT * FROM fault WHERE Started != 'no' && Deferred = 'no' && Complete = 'no'
The error message is:
Code:
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'Started != 'no' && Deferred = 'no' && Complete = 'no''.
The table "fault" exists, and the columns "Started", "Deferred" and "Complete" all exist within the "fault" table.
The query works fine when I send it to an equivalent MySQL database, so I'm also wondering if there is a key difference between MySQL and the version of SQL used by ODBC/Access?