Hi,
How do I check the following in a recordset (which is from a query, not a table):
1) if it is empty
2) number of records inside it (if i open the recordset with dbOpenDynaset)
3) max, min, avg
I get a type mismatch error if I try the following to get the max:
How do I check the following in a recordset (which is from a query, not a table):
1) if it is empty
2) number of records inside it (if i open the recordset with dbOpenDynaset)
3) max, min, avg
I get a type mismatch error if I try the following to get the max:
Code:
Dim myR As Recordset
Set myR = CurrentDb.OpenRecordset("Query1")
MsgBox DSUm("Record_value", myR)