Check status recordset 
Author Message
 Check status recordset

is there a way to check to see if a recordset is still a vaild object (not
already closed) before attempting to close it?

thanks



Sun, 24 Oct 2004 04:10:26 GMT  
 Check status recordset
Hi,
If you want to check if it's a valid object:
If Not rsNewId Is Nothing Then

If you want to see if it's closed or not,
I beleive you have to try and close it and trap
the error if it's already closed.

Note: I assume we're talking about a DAO
recordset, not an ADO one.

HTH
Dan Artuso, MVP

Quote:

> is there a way to check to see if a recordset is still a vaild object (not
> already closed) before attempting to close it?

> thanks



Sun, 24 Oct 2004 06:58:27 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. OptimisticBatchUpdate - Using RecordSet Status to check changes.

2. How to check a Recordset's status?

3. OptimisticBatchUpdate - Using RecordSet Status to check changes.

4. OptimisticBatchUpdate - Using RecordSet Status to check changes.

5. Checking open status of an ADO recordset

6. vba process status check

7. Checking Word Mailmerge status from Access VBA

8. Check status of mailitem

9. Checking the open-status of a office-document

10. Check Out Of Office status on exit

11. Checking 'shared' status of a folder

12. Checking shared item status of a folder

 

 
Powered by phpBB® Forum Software