Hi,
I need help implementing a record count when I run my query. I want my form, frmSearchResults, to display the number of results that were returned by the query. I have a record count at another place in my db, but it counts the number of records in a table. It is as follows:
Private Sub Form_Current()
Dim db As DAO.Database, rs As DAO.Recordset
Set db = CurrentDb()
Set rs = db.OpenRecordset("tblJobs"
rs.MoveLast: rs.MoveFirst
Me.txtCount = rs.RecordCount + 1
End Sub
But when I tried this with the query, qrySearching, it gives me an error.
Thank you in advance!
I need help implementing a record count when I run my query. I want my form, frmSearchResults, to display the number of results that were returned by the query. I have a record count at another place in my db, but it counts the number of records in a table. It is as follows:
Private Sub Form_Current()
Dim db As DAO.Database, rs As DAO.Recordset
Set db = CurrentDb()
Set rs = db.OpenRecordset("tblJobs"
rs.MoveLast: rs.MoveFirst
Me.txtCount = rs.RecordCount + 1
End Sub
But when I tried this with the query, qrySearching, it gives me an error.
Thank you in advance!