|
-
Oct 16th, 2000, 07:42 AM
#1
Thread Starter
Hyperactive Member
Anyone tell me why i get this error
ADODB.Recordset error '800a0cb3'
Object or provider is not capable of performing requested operation.
with this
strProvider = "DSN=MLAdmin;"
'create connection
Set cn = CreateObject("ADODB.Connection")
cn.Open strProvider
strQuery = "SELECT * FROM CONTACT"
Set rst = CreateObject("ADODB.Recordset")
rst.Open strQuery, cn
rst.AddNew
FOR i = 1 to rst.Fields.Count -1
rst.Fields(i).Value = Request.Form(rst(i).Name)
NEXT
rst.update
-
Oct 16th, 2000, 08:30 AM
#2
Fanatic Member
Hi gsc1ugs
you need to open the recordset as dynamic or keyset using the following
rst.Open strQuery, cn,adOpenDynamic
or
rst.Open strQuery, cn,adOpenKeyset
if you leave it blank it defaults it adOpenStatic and that doesn't let you change records
Hope this helps
Ian
Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!
-
Oct 16th, 2000, 08:53 AM
#3
Thread Starter
Hyperactive Member
still get error
still get the error.
ADODB.Recordset error '800a0cb3'
Object or provider is not capable of performing requested operation.
/aspweb/MLAdmin.asp, line 82
line 82 is rst.addnew
-
Oct 16th, 2000, 09:29 AM
#4
Fanatic Member
Ok
if you goto this thread from this morning it should sort out our problem
Ian
Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!
-
Oct 16th, 2000, 09:36 AM
#5
Thread Starter
Hyperactive Member
?
Now i get
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/aspweb/MLAdmin.asp, line 81
-
Oct 16th, 2000, 09:37 AM
#6
Thread Starter
Hyperactive Member
?
Now i get
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/aspweb/MLAdmin.asp, line 81
whats the options type adCmdText for?
-
Oct 16th, 2000, 09:41 AM
#7
Thread Starter
Hyperactive Member
again ?
what does that mean?
adCmdText - Evaluates CommandText as a textual definition of a command or stored procedure call.
-
Oct 17th, 2000, 04:11 AM
#8
Thread Starter
Hyperactive Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|