Results 1 to 3 of 3

Thread: ADODB.Recodset problem

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2000
    Location
    Isle of Man
    Posts
    276
    check this one out...

    I'm opening a recordset using a data class when i call the sub to open the recodset, i pass the sql and the type of set, eg: -

    DS1.SetRs "SELECT....", DynamicSet (enumerated type)

    this then calls the sub which closes tyhe set if it's already open, and then opens it based on my criteria, like this: -

    Rs.Open SQL, Cnn, SetType, adLockOptimistic

    where SQL is the sql statement, Cnn is the active connection, SetType is the enumerated type passed to the sub and lockoptimistic is the type of locking i'm using.

    the procedure i'm caling this from uses it once with no problems. it then calls it again and gets the error

    'No value given for one or more required parameters'

    the only thing is, i'm supplying all the arguments that are needed.

    if it's important, i'm using the Microsoft.Jet.OLEDB.4.0 provider


  2. #2
    Fanatic Member Gary.Lowe's Avatar
    Join Date
    May 2000
    Location
    In my sphere of influence
    Posts
    621
    Jimbob

    That sounds like an SQL Error.

    can you post the actual SQL Statement.
    Gary Lowe
    VB6 (Enterprise) SP5
    ADO 2.6
    SQL Server 7 SP3

    OK I know my spelling and grammer is crap so don't quote me on it!

    To err is human to take the P! is only natural !!

    Click on the top section of image for Marcus Miller website and bottom section of image for 'Run For Cover' sound clip


  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2000
    Location
    Isle of Man
    Posts
    276
    it was

    thanks very much

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