B
BillyRogers
How do i test a recordset before using the fields? Can you simply test for
If not (rst.eof) and not (rst.bof) then
debug.print rst.fields(0)
End If
My only concern with this test is that I don't know if a recordset can open
at EOF or BOF even if it's not empty. I only want to skip empty recordsets
to avoid errors. My recordset is a SQL query.
--
Billy Rogers
Dallas,TX
Currently Using Office 2000 and Office 2003
If not (rst.eof) and not (rst.bof) then
debug.print rst.fields(0)
End If
My only concern with this test is that I don't know if a recordset can open
at EOF or BOF even if it's not empty. I only want to skip empty recordsets
to avoid errors. My recordset is a SQL query.
--
Billy Rogers
Dallas,TX
Currently Using Office 2000 and Office 2003