Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2003
    Location
    London,UK
    Posts
    54

    Unanswered: connection strings

    i am using the following connection string to check if i have connected to the databse

    rs.Open sql, CurrentProject.Connection, adOpenKeyset, adLockOptimistic

    how can i check if i have closed the connection so i dont get an error wwhen i try to run another sql?

    thankx in advance

  2. #2
    Join Date
    Jul 2003
    Location
    Michigan
    Posts
    1,941
    Try this:

    If rs.State = adStateOpen Then
    ....
    Inspiration Through Fermentation

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •