Results 1 to 4 of 4

Thread: How to check if a recordset is opened ?

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Posts
    86

    Resolved How to check if a recordset is opened ?

    I have declare a recordset

    VB Code:
    1. public rs as new ADODB.recordset

    It is used in many functions that I have in my form.

    However sometimes, I encounter problem when I try to open it again as it says it is already opened. Reason because I allow the user to break the loop and exit function hence, sometimes the recordset is not closed.

    Question : How can I check if a particular recordset is already opened ?
    If I can check if it is opened then I can do a rs.close which will solve my problem.

    Anyone with solution please help !!!
    Last edited by icongroup2003; Jan 7th, 2005 at 03:43 AM.

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