Hello,
I need to know if there is a way to find out how many records there are when you perform a FindFirst on a recordset object. I tried using the recordcount property, but that gives me the number of records for the whole recordset ... I just need to know how many records there are according to the specific criteria that I apply to it ... For instance:
Any suggestions or advice would be greatly appreciated. Thanks (^_^)
-Jedi420
I need to know if there is a way to find out how many records there are when you perform a FindFirst on a recordset object. I tried using the recordcount property, but that gives me the number of records for the whole recordset ... I just need to know how many records there are according to the specific criteria that I apply to it ... For instance:
Code:
Dim db As Database
Dim rst As Recordset
Dim criteria As String
criteria = "[projID] = " & txtID.Value
Set db = CurrentDb
Set rst = db.OpenRecordset("MBA_Mgmt_Assignments", dbOpenDynaset)
rst.FindFirst criteria
If rst.NoMatch = False Then
RIGHT HERE IS WHERE I NEED TO KNOW HOW MANY
RECORDS MATCH MY CRITERIA
end if
Any suggestions or advice would be greatly appreciated. Thanks (^_^)
-Jedi420