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!

How do i know if a Recordset is open?

Status
Not open for further replies.

elibb

Programmer
Oct 22, 2001
335
MX
Hello.. im using this:
Dim rs as new ADODB.RECORSET

rs.open SQL, connection

how can i know by code if a recordset it already open???


thank You very much

Eli
 
use the State property method of ADODB.Recordset. It returns:
0=adStateClosed
1=adStateOpen

rgds
 
Thank you very much.. i knew it was going to be something so simple... you saved me.

Eli
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top