Results 1 to 8 of 8

Thread: error

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Manchester
    Posts
    446
    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

  2. #2
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696
    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!

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Manchester
    Posts
    446

    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


  4. #4
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696
    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!

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Manchester
    Posts
    446

    ?

    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

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Manchester
    Posts
    446

    ?

    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?

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Manchester
    Posts
    446

    again ?

    what does that mean?

    adCmdText - Evaluates CommandText as a textual definition of a command or stored procedure call.

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Manchester
    Posts
    446

    LANPBAKER HELP

    LANPBAKER HELP

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width