Here are a couple of observations after a short review of your code.
The database path must be a complete physical path. If you don't know the physical path, use "Server.MapPath" to get it. The path you're using doesn't have the drive identifier, and it looks like a relative path to me - not a physical path.
You didn't show the code to close the recordset and connection and free up those resources. Hopefully this code is at another location on the page. If not, you will use up all of the connections in your connection pool. After that point, you will not be able to get a new connection until the connection resources have been scavenged by a garbabe collector or the web application has been restarted.
Here is how you should free those resources.
objRS.Close
Set objRS = Nothing
objConn.Close
Set objConn = Nothing
If you need it, I can send you a listing of my logon processing (ASP + Access) as a recipe for your coding.
|