Results 1 to 3 of 3

Thread: Is the Connection closed???

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2004
    Location
    Smithfield, Utah
    Posts
    19

    Is the Connection closed???

    Question???

    How do I check to see if 1 or the other connection to a database are closed or not?

    Dim cnnDVD As New ADODB.Connection
    Dim rstDVD As New ADODB.Recordset
    Dim rstDVDCheck As New ADODB.Recordset Dim strSQLDVD As String Dim cnnVHS As New ADODB.Connection
    Dim rstVHS As New ADODB.Recordset
    Dim rstVHSCheck As New ADODB.Recordset
    Dim strSQLVHS As String


    These are my connections and recordsets, recordset checks, and SQL strings, if that helps any.

    Thanks to anyone who answers.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    I'm not sure why you are using the old ADODB objects but either want the ADO and ADO.NET connection objects have a State property that will tell you if they are open or closed or what not.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2004
    Location
    Smithfield, Utah
    Posts
    19
    Thanks.
    I figured it out right before you replyed.

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