If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Update query Troubles

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-02-04, 22:18
MadLion MadLion is offline
Registered User
 
Join Date: Nov 2004
Location: Sacramento, CA
Posts: 1
Question Update query Troubles

Evening everyone! I have an UPDATE query that is killing me! I'm generating the "Syntax error in UPDATE statement" when the query is processed on my ASP page. My syntax looks correct as far as I can see; and I made sure use the correct quote tags for the numeric db fields. But obiviously something isn't right
The code is below, I put the field type next to each string. Any help is appreciated, thanks!!

Code:
sql= "UPDATE [members] SET "
sql=sql & "[password]= '" & password & "',"       'text field
sql=sql & "[fullname]= '" & fullname & "',"	'text field
sql=sql & "[age]= " & age & ","		'number field
sql=sql & "[gender]= " & gender & ","		'text field
sql=sql & "[alocation]= '" & alocation & "',"	'text field
sql=sql & "[emailaddress]= '" & emailaddress & "',"       'text field
sql=sql & "[yahoo]= '" & yahoo & "',"		'text field
sql=sql & "[msn]= '" & msn & "',"		'text field
sql=sql & "[icqnumber]= '" & icqnumber & "',"	'text field
sql=sql & "[website]= '" & website & "',"	'text field
sql=sql & "[gamertag]= '" & gamertag & "',"	'memo field
sql=sql & "[intrests]= '" & intrests & "',"	'memo field 
sql=sql & "[avatarid]= " & avatarid & ","	'number field	
sql=sql & "WHERE " & memberid & " = [members.memberid]"	'number field
cnnSimple.Execute(sql)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On