Results 1 to 3 of 3

Thread: Check For Open Recordset

  1. #1

    Thread Starter
    Fanatic Member JCScoobyRS's Avatar
    Join Date
    Oct 2002
    Location
    Some Mountain in Colorado
    Posts
    677

    Check For Open Recordset

    I need to be able to check for an open recordset. If one is open, close it, if not, End if. Can someone help? Thanks, Jeremy
    He who listens well, speaks well.

  2. #2
    Fanatic Member SkiNLaB's Avatar
    Join Date
    Jan 2002
    Location
    Sydney, Australia
    Posts
    747
    VB Code:
    1. if rst.state = adstateopen then
    2.          'recordset is open
    3. end if
    4. if rst.state = adstateclosed then
    5.          'recordset is closed
    6. end if

    or it might be adopenstate and adclosedstate i cant remember

  3. #3
    Hyperactive Member
    Join Date
    Nov 2002
    Location
    india
    Posts
    418
    hi,

    if rs.state=1 then rs.close

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