Results 1 to 2 of 2

Thread: NEW ADO ERRORS

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 1999
    Location
    Chicago
    Posts
    11

    Post

    I am trying to execute this code below:
    Connection object has already been established and connected.
    DIM adoRS as ADODB.Recordset
    Set adoRS = New ADODB.Recordset
    Set adoRS = adoConnectToSQL.Execute("Select count(*) from tblTempTableBCP",,adcmdtext)

    I was reading a book on ADO and I am suppose to be able to do this. But it does not work. I get error 424 Object Required

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    assuming adoConnectToSQL is a ADO connection object that you have declared and connected, remove this line: Set adoRS = New ADODB.Recordset and it should work

    Tom

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