Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

adodb.connection wtf

Status
Not open for further replies.

haytatreides

IS-IT--Management
Oct 14, 2003
94
US
I have a webpage, that on load establishes an adodb connection. the problem is, if i close the page then reopen it, it will not connect. i am guessing that it leaves it open. i put a myConn.close in the code, and it does not seem to make a difference. i am tired of restarting my PC. please help me.

hayt
 
hayt,

not sure if this will help, but place this piece of code after the line "myConn.close":

Code:
Set myConn = Nothing

i know this sounds stupid of me to state as well, but you may want to ensure that you are actually getting to the section of code where you are closing the connection object (myConn.close). Is your code executing on the client or server side?
 
Get this, for some really really weird reason, when the line of code immediately AFTER the myConn.close had an error in it, it wouldn't run myConn.close. So when i changed the line after it, suddenly it works like a charm. as much as i want to know why, i am just glad it works.

server side script btw.

thanks for all your help rob, i got the whole thing working. what a pain in my @$$.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top