Guest_imported
New member
- Jan 1, 1970
- 0
When I visit my asp page the first time, it works great. It is connected to an Access database with ADODB. When I leave the page and return, I get an error related to:
Set Con = Server.CreateObject("ADODB.Connection"
Con.Open "accessDSN"
I use the following to make sure that my recordset is emptied before I move to the next page:
RS.Close
con.Close
Set con=Nothing
I am reading through a book to try and figure it out. The only thing I have possibly done wrong is that I should use a semi-colon at the end of an SQL statement when using ACCESS, but I don't think that is causing the problem.
The place where the error occurs seems to point toward a problem reconnecting to my "AccessDSN", I think.
The code worked great always when I had it on my Personal Web Server, I have since transported it to IIS 5.0 on a W2K Server, but I also have made some code changes.
Any help or ideas would be greatly appreciated!
Set Con = Server.CreateObject("ADODB.Connection"
Con.Open "accessDSN"
I use the following to make sure that my recordset is emptied before I move to the next page:
RS.Close
con.Close
Set con=Nothing
I am reading through a book to try and figure it out. The only thing I have possibly done wrong is that I should use a semi-colon at the end of an SQL statement when using ACCESS, but I don't think that is causing the problem.
The place where the error occurs seems to point toward a problem reconnecting to my "AccessDSN", I think.
The code worked great always when I had it on my Personal Web Server, I have since transported it to IIS 5.0 on a W2K Server, but I also have made some code changes.
Any help or ideas would be greatly appreciated!