Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Reserved Word? Where?

Explorer ,
Oct 24, 2008 Oct 24, 2008
Okay ladies and gents, I've been all over this code. I can' t find any syntax errors. The error message is telling me "The SELECT statement includes a reserved word or an argument name that is misspelled or missing, or the punctuation is incorrect." Since I am positive that everything is spelled correctly, and all three fields specified exist in the database table under identical names to those specififed in the SELECT statement, including those in the WHERE statement, I must be using a reserved word. But I don't see one! Any ideas?

Thanks,
GwenH
559
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Oct 24, 2008 Oct 24, 2008
You have an extra comma after email, so it looks like you are missing a parameter in your select.

Change this:
SELECT resumeID, fName, email,
FROM evals
WHERE resumeID = #url.resumeID#

to this:
SELECT resumeID, fName, email
FROM evals
WHERE resumeID = #url.resumeID#

Phil
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 24, 2008 Oct 24, 2008
Thank you so much! I feel so stupid! How could I have missed that? I went over and over that code.

Thanks again,
GwenH
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 24, 2008 Oct 24, 2008
quote:

Originally posted by: GwenH
Thank you so much! I feel so stupid! How could I have missed that? I went over and over that code.

Thanks again,
GwenH

Consider formattting your code like this:

select field1
, field2
, field 3

from etc

It has more advantages than I am willing to type.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Oct 27, 2008 Oct 27, 2008
LATEST
Nothing like having a fresh set of eyes look at your stuff. I have stared at some of the most obvious errors for hours that someone else took one second to point out!

Phil
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources