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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

closing open connections in the catch 1

Status
Not open for further replies.

michelleHEC

Programmer
Oct 20, 2003
95
US
How can I close the open connection when the try/catch catches an error? I have tried cnName.close() but it doesn't recognize the cnName because it is out of the area it was created in. Once the error is caught and the program is tried again, I get the connections already open message... thank you in advance...
Michelle
 
Thank you, sometimes I just look too close to things! I should have realized that...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top