A family of Microsoft relational database management systems designed for ease of use.
You need to move to the last record before the record count reflects the correct value.
http://msdn.microsoft.com/en-us/library/office/bb243791(v=office.12).aspx
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am trying to open a recordset in Access, based upon a pre-defined query but it is only ever finding one record. (Once I can get more than one record then I will develop the code!). I have tried substituting the query with a table, but the result is the same.
I am sure that this is something simple and obvious......but it is eluding me!
The code is :-
Dim dbs As Database
Dim rst As DAO.Recordset
Set dbs = CurrentDb()
Set rst = dbs.OpenRecordset("qry5050Entries")
MsgBox rst.RecordCount
rst.Close
dbs.Close
A family of Microsoft relational database management systems designed for ease of use.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
You need to move to the last record before the record count reflects the correct value.
http://msdn.microsoft.com/en-us/library/office/bb243791(v=office.12).aspx