M
Mark Hammer
Using a report with a crosstab query as the recordsourse. Query runs fine
in db window and report will open with the data ok.
Now trying to dynamically assign control properties in the report_open
event, where I do this:
Dim rs as DAO.Recordset
Set rs = CurrentDb.OpenRecordset(Me.RecordSource)
Here is where I get the error, "3061 -- Too few parameters. Expected 2"
My two parameters are declared in the xtab query. I can dim a qdf, set it
to my recordsource query, retrieve the sql at runtime, paste it into a new
query, and it works fine.
Stumped here. Help appreciated.
Mark Hammer
Lake Oswego, Oregon, U.S.
in db window and report will open with the data ok.
Now trying to dynamically assign control properties in the report_open
event, where I do this:
Dim rs as DAO.Recordset
Set rs = CurrentDb.OpenRecordset(Me.RecordSource)
Here is where I get the error, "3061 -- Too few parameters. Expected 2"
My two parameters are declared in the xtab query. I can dim a qdf, set it
to my recordsource query, retrieve the sql at runtime, paste it into a new
query, and it works fine.
Stumped here. Help appreciated.
Mark Hammer
Lake Oswego, Oregon, U.S.