Hi there,
I know this is going to be a no-brainer, but could anyone tell me why the following code produces a record count of 1 rather than 4 (the number or records in the table)
Many thks in advance
Phil.
Private Sub Command141_Click()
Dim db As DAO.Database
Dim rs As DAO.Recordset
Set db = CurrentDb
Set rs = db.OpenRecordset("tbl_MailpackConsolidate", dbOpenDynaset)
Debug.Print rs.RecordCount
End Sub
I know this is going to be a no-brainer, but could anyone tell me why the following code produces a record count of 1 rather than 4 (the number or records in the table)
Many thks in advance
Phil.
Private Sub Command141_Click()
Dim db As DAO.Database
Dim rs As DAO.Recordset
Set db = CurrentDb
Set rs = db.OpenRecordset("tbl_MailpackConsolidate", dbOpenDynaset)
Debug.Print rs.RecordCount
End Sub