P
panoffp
I am using the following VB code to create a temp query.
' get cycleID from cycle Table
Set qdfC = dbs.CreateQueryDef("", _
"Select ID From Cycle where Cycle_Yr_Month = " & YrMon & _
" AND Cycle = " & Cyc & " ;")
Set rsC = qdfC.OpenRecordset(dbOpenSnapshot, dbReadOnly,
dbReadOnly)
When I execute the OpenRecord set command I get a Runtime Error: 3061. Too
few parameters, Expected 1.
I must be missing something in the explanations. Thank you in advance for
you time and suggestions!
' get cycleID from cycle Table
Set qdfC = dbs.CreateQueryDef("", _
"Select ID From Cycle where Cycle_Yr_Month = " & YrMon & _
" AND Cycle = " & Cyc & " ;")
Set rsC = qdfC.OpenRecordset(dbOpenSnapshot, dbReadOnly,
dbReadOnly)
When I execute the OpenRecord set command I get a Runtime Error: 3061. Too
few parameters, Expected 1.
I must be missing something in the explanations. Thank you in advance for
you time and suggestions!