Update method

P

Poppy

I use the following to update:

Dim rsEdit1
Set rsEdit1 = Server.CreateObject("ADODB.Recordset")
rsEdit1.ActiveConnection = MM_shop_STRING
rsEdit1.Source = "SELECT * FROM products WHERE pautoid = 12"
rsEdit1.CursorType = 2
rsEdit1.LockType = 3
rsEdit1.Open()

rsEdit1.("authorMemo") = "TEST" *Error message from this line
rsEdit1.update

rsEdit1.Close()
Set rsEdit1 = Nothing

The problem is that I keep getting the following error message :

"Microsoft VBScript compilation (0x800A03F2) Expected identifier"

Can anyone help ?
 
K

Ken Schaefer

Please post to one newsgroup onlye

Answered in asp.db

Cheers
Ken

: I use the following to update:
:
: Dim rsEdit1
: Set rsEdit1 = Server.CreateObject("ADODB.Recordset")
: rsEdit1.ActiveConnection = MM_shop_STRING
: rsEdit1.Source = "SELECT * FROM products WHERE pautoid = 12"
: rsEdit1.CursorType = 2
: rsEdit1.LockType = 3
: rsEdit1.Open()
:
: rsEdit1.("authorMemo") = "TEST" *Error message from this line
: rsEdit1.update
:
: rsEdit1.Close()
: Set rsEdit1 = Nothing
:
: The problem is that I keep getting the following error message :
:
: "Microsoft VBScript compilation (0x800A03F2) Expected identifier"
:
: Can anyone help ?
:
:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,136
Messages
2,570,795
Members
47,346
Latest member
Jason Calder

Latest Threads

Top