N
NelsonP
I'm trying to do the simplest of tasks here -- to set up a recordset based on
a Querydef:
Dim rs As Recordset
Dim qdfTemp As QueryDef
Set qdfTemp = CurrentDb.QueryDefs("Query1")
Set rs = qdfTemp.OpenRecordset(dbOpenSnapshot)
Query1 is a query defined in the Access environment, and the first statement
seems to work properly. The second does not. The compiler provides the
error, "Too few parameters. Expected 2.", regardless of how many parameters
I provide.
If someone could give me a little help with this debug, I'd really
appreciate it. The standard MShelp has proved worthless regarding this issue.
a Querydef:
Dim rs As Recordset
Dim qdfTemp As QueryDef
Set qdfTemp = CurrentDb.QueryDefs("Query1")
Set rs = qdfTemp.OpenRecordset(dbOpenSnapshot)
Query1 is a query defined in the Access environment, and the first statement
seems to work properly. The second does not. The compiler provides the
error, "Too few parameters. Expected 2.", regardless of how many parameters
I provide.
If someone could give me a little help with this debug, I'd really
appreciate it. The standard MShelp has proved worthless regarding this issue.