Solved

The SELECT statement includes a reserved word or an argument name that is misspelled or missing, or the punctuation is incorrect.

Posted on 2004-04-15
5
2,436 Views
Last Modified: 2012-06-27
Set ProjectQ = coDB.Execute("select SubRegionID, FocusID, from tbl_Project where ProjectID = " & Request("ProjectID"))

error:

The SELECT statement includes a reserved word or an argument name that is misspelled or missing, or the punctuation is incorrect.


what the hell is wrong with my query?  I don't see it
0
Comment
Question by:dba123
  • 3
  • 2
5 Comments
 
LVL 34

Accepted Solution

by:
arbert earned 500 total points
ID: 10837032
You have a comma after FocusID before the from statement...
0
 
LVL 34

Expert Comment

by:arbert
ID: 10837033
Set ProjectQ = coDB.Execute("select SubRegionID, FocusID from tbl_Project where ProjectID = " & Request("ProjectID"))
0
 
LVL 1

Author Comment

by:dba123
ID: 10837037
unbelievable......ahhhhh
0
 
LVL 1

Author Comment

by:dba123
ID: 10837101
hmmm, maybe it's time for contacts lenses
0
 
LVL 34

Expert Comment

by:arbert
ID: 10837327
nah, just sounds like it's close to the end of your day :)  Those are the hardest problems to find!
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question