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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error message - Expected end of statement

Status
Not open for further replies.

eyal

Programmer
May 15, 2000
38
0
0
IL
Hi,
Everytime I run the page I get the following Error message - Expected end of statement

conord.Execute "insert into orders (itemnum, itemname, quantity, price, total) values ('" "key" & "','" & "name" & "','" & "quant" & "','" & "pric" & "','" & "midtotal" & "')"

Any idea?
Thanks
Eyal
[sig][/sig]
 
Create a local variable, like SQL, to hold the SQL statement. That way, you print it out after you build it to make sure it's correct. There might be something strange going on. Ex:
Code:
SQL="insert into orders (itemnum, itemname, quantity, price, total) values ('" "key" & "','" & "name" & "','" & "quant" & "','" & "pric" & "','" & "midtotal" & "')"

conord.Execute(SQL)



[sig]<p>Monte Kalisch<br><a href=mailto:montek@montekcs.com>montek@montekcs.com</a><br><a href= MVP for ASP</a><br> [/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top