TungVan
asked on
how to check if the recordset is opened or close with DAO
Hi,
I searched on this web site, and some people suggest to compare it with Nothing, but I am not quite sure about it...
Is there an attribute or something for DAO recordset...for example...state, status, or something
Thanks
for ADO it's .State. I am not sure for DAO though. Might be the same, try it.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Testing Is Nothing only works if the object is actually set to nothing in the code. If someone closes the recordset without setting it to nothing, you wouldn't know if it was open or not. You can test that yourself.