Share via

Why does Recordset only return one record?

Anonymous
2013-04-02T13:26:50+00:00

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

Microsoft 365 and Office | Access | For home | Windows

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.

0 comments No comments

0 additional answers

Sort by: Most helpful