Hi
I'm running the following script query on my database but keep getting the error:
Unexpected text at end of SQL query: '='
The query is:
"SELECT PROG_NO FROM pallet_formats WHERE FIELD87 = 5;";
I get the same error when I run:
"SELECT PROG_NO FROM pallet_formats WHERE FIELD87 LIKE '5';";
It also doesn't make a difference if I include the apostrophe's around my search term or not. ie. LIKE 5 or LIKE '5' give me...
Unexpected text at end of SQL query: 'LIKE'
Anyone any ideas? Is it possible that the LIKE command isn't used on Access. Yesterday I had trouble with the LIMIT command and found out you had to use TOP instead?
Thanks for any help you can give me.
Cheers
JT
I don't make mistakes, I'm merely beta-testing life.
I'm running the following script query on my database but keep getting the error:
Unexpected text at end of SQL query: '='
The query is:
"SELECT PROG_NO FROM pallet_formats WHERE FIELD87 = 5;";
I get the same error when I run:
"SELECT PROG_NO FROM pallet_formats WHERE FIELD87 LIKE '5';";
It also doesn't make a difference if I include the apostrophe's around my search term or not. ie. LIKE 5 or LIKE '5' give me...
Unexpected text at end of SQL query: 'LIKE'
Anyone any ideas? Is it possible that the LIKE command isn't used on Access. Yesterday I had trouble with the LIMIT command and found out you had to use TOP instead?
Thanks for any help you can give me.
Cheers
JT
I don't make mistakes, I'm merely beta-testing life.