![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I have a query with three fields that have criteria set to fields on a form. The form is open and those fields have the proper data entered in them. But when trying to set a recordset to that query (Set rstResourcesScheduled_pw = dbCurr_pw.OpenRecordset("qryResourceCalendar")), I get the "too few parameters, expected three". I thought this would be easier than having to filter the recordset when reading through it. I guess Access (2003) doesn't like what I am doing? -paulw |
#3
| |||
| |||
|
|
You need to explicitly resolve the parameters. Dim qdf As DAO.QueryDef Dim prm As DAO.Parameter Set qdf = dbCurr_pw.QueryDefs("qryResourceCalendar") For Each prm In qdf.Parameters prm.Value = Eval(prm.Name) Next prm Set rstResourcesScheduled_pw = qdf.OpenRecordset |
#4
| |||
| |||
|
|
You need to explicitly resolve the parameters. Dim qdf As DAO.QueryDef Dim prm As DAO.Parameter Set qdf = dbCurr_pw.QueryDefs("qryResourceCalendar") For Each prm In qdf.Parameters prm.Value = Eval(prm.Name) Next prm Set rstResourcesScheduled_pw = qdf.OpenRecordset |
![]() |
| Thread Tools | |
| Display Modes | |
| |