SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 1st, 2001, 08:36 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Syntax error in UPDATE statement

<i><b>Originally posted by : Bergis (bergis80@hotmail.com)</b></i><br />Hi there,<br /> I'm really desperate, I've try to fix this myself but I really don't see what is wrong in my statement, I've triple-check many times, tried many things, but still can't see what I am doing wrong, any help would be greatly apreciated.<br /><br />I am doing an update by giving an sql statement to an ADODB.Command object, using his CommandText property like this :<br /><br />objCmd.CommandText = SQLStmt<br />objCmd.Execute<br /><br />here's what SQLStmt looks like when it goes into the CommandText (I've made an response.write just to see the output) : UPDATE membres SET nom_personnage='uuuuuuuuu',dispo='yyyyyyyyyyy',pre sentation='bla',email='bla2',icq='66666',password= 'test',level='66666',classe='amazon' WHERE nom_membre = 'test' <br /><br />And I am Getting this error :<br />Microsoft OLE DB Provider for ODBC Drivers error '80040e14' <br /><br />[Microsoft][ODBC Microsoft Access Driver] Syntax error in UPDATE statement. <br /><br />I am not getting this error if I remove the "level" part. If I skip on the level field, everything goes well. But as soon as I add this field, boum!<br /><br />Now all those fields are text or memos. I just don't see what is wrong with the "level" part, it uses the same syntax and all. I'm going crazy over this. If anyone can shed a light over this it would lift my spirit <br />thank you very much,<br />Bergis<br /><br />P.S.: Sorry for my english, it's not my first langage. <br />

Reply With Quote
  #2  
Old May 20th, 2001, 05:23 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Jeremy (footj@yahoo.com)</b></i><br />I got this same error. I fixed it by changing level='66666' to membres.level='66666' or by renaming the level feild to something like level1. <br /><br />Can you help me? I keep getting "Operation must use an updateable query" error. My update query is set up just like yours.<br /><br />Jeremy<br /><br /><br />------------<br />Bergis at 2/1/2001 6:36:20 AM<br /><br />Hi there,<br /> I'm really desperate, I've try to fix this myself but I really don't see what is wrong in my statement, I've triple-check many times, tried many things, but still can't see what I am doing wrong, any help would be greatly apreciated.<br /><br />I am doing an update by giving an sql statement to an ADODB.Command object, using his CommandText property like this :<br /><br />objCmd.CommandText = SQLStmt<br />objCmd.Execute<br /><br />here's what SQLStmt looks like when it goes into the CommandText (I've made an response.write just to see the output) : UPDATE membres SET nom_personnage='uuuuuuuuu',dispo='yyyyyyyyyyy',pre sentation='bla',email='bla2',icq='66666',password= 'test',level='66666',classe='amazon' WHERE nom_membre = 'test' <br /><br />And I am Getting this error :<br />Microsoft OLE DB Provider for ODBC Drivers error '80040e14' <br /><br />[Microsoft][ODBC Microsoft Access Driver] Syntax error in UPDATE statement. <br /><br />I am not getting this error if I remove the "level" part. If I skip on the level field, everything goes well. But as soon as I add this field, boum!<br /><br />Now all those fields are text or memos. I just don't see what is wrong with the "level" part, it uses the same syntax and all. I'm going crazy over this. If anyone can shed a light over this it would lift my spirit <br />thank you very much,<br />Bergis<br /><br />P.S.: Sorry for my english, it's not my first langage. <br />

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > Syntax error in UPDATE statement


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT