OutFront Forums
     Home    Register     Search      Help      Login    

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

Sponsors
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

 

ASP UPDATE. need help---error '800a01c2' Wrong number of arguments or invalid property assignment

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP, PHP, and Database >> ASP UPDATE. need help---error '800a01c2' Wrong number of arguments or invalid property assignment
Page: [1]
 
watle

 

Posts: 6
Joined: 6/29/2009
Status: offline

 
ASP UPDATE. need help---error '800a01c2' Wrong number... - 7/4/2009 10:05:16   
my asp data don´t work, when i tried to update.
Thx
Microsoft VBScript runtime error '800a01c2'

Wrong number of arguments or invalid property assignment

/rboggs/wu/wu006/assignment/asp_update.asp, line 239


//Update Statement
sql = "UPDATE registration SET Firstname = '" & firstname & "', Lastname = '" & lastname & "', City = '" & city & "', Street = '" & street & "', PLZ ='" & plz & "', State ='" & state & "', Homephone='"& homephone & "', Cellphone='" & cellphone & "', Age='" & birthdate & "', Gender='" & gender & "', Interested_Prayer='" & prayer & "', Interested_Worship='" & worship_together & "', Interested_Download='" & download & "', Interested_Donation='" & donation & "', Interested_Request='" & request & "', Additional='" & questions & "', Appreciation='" & appreciation & "', Email='" & emailadresse1 & "', WHERE ID = '" & id & "';"

set lrs = conn.Execute(sql)
%>
<h3>Your data was updated sucessfully</h3>
<a href="asp_read.asp" style="color:#FBIFBI;">[<] Back</a>
Spooky

 

Posts: 26680
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: ASP UPDATE. need help---error '800a01c2' Wrong nu... - 7/4/2009 18:21:44   
sql = "UPDATE registration SET Firstname = '" & firstname & "', Lastname = '" & lastname & "', City = '" & city & "', Street = '" & street & "', PLZ ='" & plz & "', State ='" & state & "', Homephone='"& homephone & "', Cellphone='" & cellphone & "', Age='" & birthdate & "', Gender='" & gender & "', Interested_Prayer='" & prayer & "', Interested_Worship='" & worship_together & "', Interested_Download='" & download & "', Interested_Donation='" & donation & "', Interested_Request='" & request & "', Additional='" & questions & "', Appreciation='" & appreciation & "', Email='" & emailadresse1 & "', WHERE ID = '" & id & "';" 

response.write sql
response.end



What is the SQL string when you view the page?

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

Sp:)ky


(in reply to watle)
watle

 

Posts: 6
Joined: 6/29/2009
Status: offline

 
RE: ASP UPDATE. need help---error '800a01c2' Wrong nu... - 7/4/2009 20:05:48   
Hi,
i've filled the form-table and i add the code
with <%response.write sql
response.end%>

Result:

UPDATE registration SET Firstname='Patrick', Lastname='Fabolous', City='Frankfurt', Street='Josefschneider', PLZ='98475', State='Bayern', Homephone='0931234857', Cellphone='0171239485904', Age='30', Gender='male', Interested_Prayer='True', Interested_Worship='False', Interested_Download='True', Interested_Donation='True', Interested_Request='True', Additional='test', Appreciation='great', Email='email@address.de', WHERE ID='47';

with <%response.write sql%>

UPDATE registration SET Firstname='Patrick', Lastname='Fabolous', City='Frankfurt', Street='Josefschneider', PLZ='98475', State='Bayern', Homephone='0931234857', Cellphone='0171239485904', Age='30', Gender='male', Interested_Prayer='True', Interested_Worship='False', Interested_Download='True', Interested_Donation='True', Interested_Request='True', Additional='test', Appreciation='great', Email='email@address.de', WHERE ID='47';

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][ODBC Microsoft Access Driver] Syntax error in UPDATE statement.

/rboggs/wu/wu006/assignment/asp_update.asp, line 243


< Message edited by watle -- 7/4/2009 20:16:03 >

(in reply to Spooky)
Spooky

 

Posts: 26680
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: ASP UPDATE. need help---error '800a01c2' Wrong nu... - 7/4/2009 23:39:53   
See the last comma? shouldnt be there.

quote:

Email='email@address.de', WHERE


Also, if a column is numeric, you do not use quotes

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

Sp:)ky


(in reply to watle)
watle

 

Posts: 6
Joined: 6/29/2009
Status: offline

 
RE: ASP UPDATE. need help---error '800a01c2' Wrong nu... - 7/5/2009 15:02:28   
Thanks so much,
i move the quotes for numeric columns and the last comma and it works perfectly.
Thanks

(in reply to Spooky)
Page:   [1]

All Forums >> Web Development >> ASP, PHP, and Database >> ASP UPDATE. need help---error '800a01c2' Wrong number of arguments or invalid property assignment
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts