Results 1 to 3 of 3

Thread: WhyIsItSo

  1. #1

    Thread Starter
    Member vbGirl's Avatar
    Join Date
    Sep 2001
    Location
    India
    Posts
    41

    WhyIsItSo

    i have created a recordset say rs and it has a valid connection as well as a valid sql string

    rs.open sql,con,adopenkeyset,adlockpessimistic

    Why is it so that the recordcount method returns the total no. of records correctly in this case,
    But returns -1 with other locktypes and cursor types?
    with Regards
    Vbgirl

  2. #2
    Hyperactive Member abhid's Avatar
    Join Date
    Nov 2001
    Location
    3rd rock from the sun
    Posts
    467
    this is because recordcount property is supportted only by adopenkeyset cursor type
    more explaination is in MSDN

  3. #3
    Junior Member
    Join Date
    Oct 2001
    Posts
    29
    Recordcount Method doesn't work with Oracle database at all, only SQL Server with adOpenKeyset and adOpenStatic

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