A
Albert
Hello All,
1) Early, I know I can use statement
If RS.BOF And RS.EOF Then Msgbox "No record in recordset."
to check whether or not RS contain record.
But if I test with RecordsetClone
set RS = Me.RecordsetClone
If RS.BOF And RS.EOF Then Msgbox "No record in recordset."
then this message box is displayed eventhough RS contains records.
With RS.BOF And RS.EOF , Doesn't it apply to RecordsetClone ?
2) I solve this problem by use If RS.RecordCount > 0 instead. So, Can I
replace RS.BOF And RS.EOF by .RecordCount for every case ? Have any
exception in case that RS contains record(s) but .RecordCount return 0 ?
Thanks in advance
1) Early, I know I can use statement
If RS.BOF And RS.EOF Then Msgbox "No record in recordset."
to check whether or not RS contain record.
But if I test with RecordsetClone
set RS = Me.RecordsetClone
If RS.BOF And RS.EOF Then Msgbox "No record in recordset."
then this message box is displayed eventhough RS contains records.
With RS.BOF And RS.EOF , Doesn't it apply to RecordsetClone ?
2) I solve this problem by use If RS.RecordCount > 0 instead. So, Can I
replace RS.BOF And RS.EOF by .RecordCount for every case ? Have any
exception in case that RS contains record(s) but .RecordCount return 0 ?
Thanks in advance