Link to home
Start Free TrialLog in
Avatar of TungVan
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
Avatar of PePi
PePi

for ADO it's .State. I am not sure for DAO though. Might be the same, try it.
ASKER CERTIFIED SOLUTION
Avatar of PaulHews
PaulHews
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.