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

Recordset question

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How can I know if a recordset is currently opened so I can do I close?
I'm working with ADO.

I'm doing:

rstest.Open "SELECT....", conn, ...

And everytime I do this, I must check if the recordset is opened or not. How can I do it?
 
If Not rstest.State = adStateOpen Then
rstest.Open "SELECT....", conn, ...
else
'the rs is open
end if
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top