News Focus
News Focus
Followers 210
Posts 7903
Boards Moderated 15
Alias Born 05/24/2001

Re: Dimension post# 34506

Thursday, 01/22/2004 1:39:37 PM

Thursday, January 22, 2004 1:39:37 PM

Post# of 222454
We don't know whether the problem is a connection or recordset. Ensuring that the connection is closed is the first step because it's the easiest, and I included closing rs since that's the recordset name I use the most.

 
if typename(rs)="Recordset" then
if rs.state=1 then
rs.close
end if
set rs=nothing
end if
if typename(my_conn)="Connection" then
if my_conn.state=1 then
my_conn.close
end if
set my_conn=nothing
end if


Have to do it this way because if rs is already destroyed or closed, rs.close will return an error.

Discover What Traders Are Watching

Explore small cap ideas before they hit the headlines.

Join Today