Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can anyone tell me what's wrong with this query?

Status
Not open for further replies.

fergman

Technical User
Oct 19, 2000
91
US
SQL = "SELECT customerName, department, FROM reservations, depList WHERE customerName = '" & customerName & "'"

I'm getting the error:

Microsoft JET Database Engine error '80040e14'

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


This is an active server page using vbscript
 
"SELECT customerName, department, FROM reservations, depList WHERE customerName = '" & customerName & "'"

you have a comma after department which shouldn't be there

Transcend
[gorgeous]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top