fearoffours
Registered User.
- Local time
- Today, 16:53
- Joined
- Apr 10, 2008
- Messages
- 82
Hi there, I'm opening the following recordset in a forms On_Current event:
This is giving me a runtime error 3061, too few parameters.
The query receives a parameter from the value of another (open) form.
If I break the code before the line above, the parameter evaluates correctly in the Immediate window.
eg:
So why is the recordset not opening?
Code:
Set rst = dbs.OpenRecordset("qryPlantFromPlantsForm", dbOpenDynaset)
The query receives a parameter from the value of another (open) form.
If I break the code before the line above, the parameter evaluates correctly in the Immediate window.
eg:
Code:
?currentdb.querydefs("qryPlantFromPlantsForm").Parameters(0).Name
[Forms]![frmPlants].[txtFilterName]
?[Forms]![frmPlants].[txtFilterName]
Acer palmatum 'Beni-schichihenge'
Last edited: