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

urgent : Syntax error in UPDATE statement.

Status
Not open for further replies.

snowboardr

Programmer
Feb 22, 2002
1,401
PH
Microsoft JET Database Engine error '80040e14'

Syntax error in UPDATE statement.


ConnString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("ads.mdb")
set my_conn = Server.CreateObject("ADODB.Connection")
my_conn.Open ConnString

strSQL = "UPDATE ads SET view=" & strView + 1 & " WHERE bID=" & strPID

rs = my_conn.execute(strSql) '< error here
'< I have tried &quot;set rs =&quot; also..
' with same error

my_conn.Close
Set my_conn = nothing www.vzio.com
star.gif
if I helped. [wink]
 
it is a number field i have tried it with ' ' and without.. still the same error. www.vzio.com
star.gif
if I helped. [wink]
 
I think my problem was the database table name &quot;view&quot; wasnt aloud, i changed that and it seems to be working now..

thanks though. www.vzio.com
star.gif
if I helped. [wink]
 
It also could have been because there may not have been a value for view.. but i will never know. it works fine now.. lol

well from now on im naming db names something like

db_firstname.. etc

so there is no mistake that takes 2 hours to figure out.

happy coding. www.vzio.com
star.gif
if I helped. [wink]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top