OpenRecordset error

G

Glenn Suggs

Can someone help with this problem? I'm trying to open a recordset in DAO.
Here is the statement and the error message. (The recordset is a query)

Set rs = CurrentDb.OpenRecordset("qryInspectionsCompletedManholes",
dbOpenDynaset)

Error #3061 was generated by DAO.Database.
Too few parameters. Expected 2 at line 100.

Thanks in advance.
 
R

ruralguy via AccessMonster.com

Does the query open directly? Where is the Dim statement for rs?
Dim rs As DAO.Recordset
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top