I'm trying to populate a recordset with a query I have stored in Access 07. I basically copied the lines from the help file on how to do this but substituted my own info -
But every time I try this, I get a "too few parameters: Expected 1" error on that last line. It works perfectly fine if I put the name of a table in there, and lets me move through the recordset and print data and everything, but for some reason it doesn't work with queries.
I must just be missing something extremely obvious here, but I've been stumped for a while.
Code:
Dim dbsCurrent As DAO.Database Dim rstEmail As DAO.Recordset Dim strService As String Set dbsCurrent = CurrentDb Set rstEmail = dbsCurrent.OpenRecordset("qry_EmailList")
I must just be missing something extremely obvious here, but I've been stumped for a while.
Comment