
How do I tell if the Recordset closed?
I see 2 other answers but I still feel that I should answer too.
Would using the "is Nothing" test be useful?
Sub nnn()
Dim db As Database, rs As Recordset
Set db = CurrentDb
Set rs = db.OpenRecordset("people")
If rs is Nothing then MsgBox "I have no rs"
rs.Close
If rs is Nothing then MsgBox " I have closed rs"
Set rs = Nothing
If rs Is Nothing Then MsgBox "rs is nothing"
End Sub
--
Mark
( E-Mail Address Note: Texas is the lonestar not onestar)
Quote:
> This should be a no brainer, but it's eluding me. In ADO you can check
> rs.State to see if the recordset is closed. How can I tell in DAO 3.51?
> Thanks!
> RobB