![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I've tried IsNull() and IsEmpty() on an uninitialized ADODB.Recordset, but they both return False. VBA, at least under Access 2000, doesn't like the test: If rs = Nothing Then ... Is there an easy test to determine if a recordset is open? |
#3
| |||
| |||
|
|
Hi there, This ought to do it: if rs.EOF and rs.BOF then Ie if rs.end of file and rs.beginning of file the recordset cursor is simultaneously set to point to the beginning and the end of the recordset when there are no records. |
#4
| |||
| |||
|
|
I've tried IsNull() and IsEmpty() on an uninitialized ADODB.Recordset, but they both return False. VBA, at least under Access 2000, doesn't like the test: If rs = Nothing Then ... Is there an easy test to determine if a recordset is open? |
#5
| |||
| |||
|
|
An ADO recordset returns the State property which can be read. For Example: Dim rs As ADODB.Recordset Set rs = New ADODB.Recordset if rs.State = adStateOpen Then etc etc |
![]() |
| Thread Tools | |
| Display Modes | |
| |