We have an Access '97 application for checking out and reserving tools and equipment. We need code that flags an entry when the time period for the reservation is already secured. To accomplish this on my test copy, I have successfully created code that opens up a recordset, compares the dates, and flags dates that overlap.
When attempting to move it into production (on a database with a database password, the main difference between the two), it is failing, indicating that the database is already in use.
The problem appears to be in the connection. Here's the code I'm using:
'Open the connection
Set cnnConn = New ADODB.Connection
With cnnConn
.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0"
.Open "\\server\path\db.mdb", user, password
End With
I've tried to find ways to say "Use this same database and connection that I'm using" but haven't succeeded. Any help?
Tony
Albuquerque, NM
When attempting to move it into production (on a database with a database password, the main difference between the two), it is failing, indicating that the database is already in use.
The problem appears to be in the connection. Here's the code I'm using:
'Open the connection
Set cnnConn = New ADODB.Connection
With cnnConn
.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0"
.Open "\\server\path\db.mdb", user, password
End With
I've tried to find ways to say "Use this same database and connection that I'm using" but haven't succeeded. Any help?
Tony
Albuquerque, NM