Results 1 to 2 of 2

Thread: close ALL recordset objects

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539

    Angry

    its mua again.....

    i try to close all my recordsets when i am done with them
    but some how one stays in the memory.. and next time i open my project it says a certain record cannot open because its already open..
    tried debugging it, nothing
    this only happends SOMETIMES

    anyone know how i can write a function that will go throu all recordset objects in a project and close them down
    when a user loggs off?

    thankx

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

    you can use the dbengine object

    Code:
    DBEngine.Idle dbFreeLocks
    DBEngine.Idle dbRefreshCache
    this release any locks on the database

    Hope this is of use
    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


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