I'm trying to create a recordset using an existing query and when the code executes I get the error message 3061 "Too few parameters expected 1." Everything sees to be correct, yet I can't get the recordset created. Here's the VBA code I'm using to open the recordset (DAO):
Set rstDelays = dbsCurrent.OpenRecordset("myQuery", dbOpenSnapshot)
I suspect this may be one of those error message that doesn't really tell what the problem is. Can someone help? I've tried a variety of changes, but nothing seems to work. Also, if I put brackets around the query name it can't even find the query.
Thanks,
Bob
Set rstDelays = dbsCurrent.OpenRecordset("myQuery", dbOpenSnapshot)
I suspect this may be one of those error message that doesn't really tell what the problem is. Can someone help? I've tried a variety of changes, but nothing seems to work. Also, if I put brackets around the query name it can't even find the query.
Thanks,
Bob