W
Wim
Hi all,
I want to generate a report from within VBA. The report
gets its records from a parameter query
(called "Results"), where the only parameter (as filled in
in the "criteria" field of the query) is :
[Give the starting date : ]
the code :
Set rst = db.OpenRecordset("Results", dbOpenDynaset)
DoCmd.OpenReport strReportName, acViewPreview, , ,
acWindowNormal
DoCmd.Close acReport, strReportName, acSaveNo
The error message is : "too few parameters. Expected 1"
Apparently I should be able to get the starting date from
a parameter input screen, but how ?
Thanks for helping,
Wim
I want to generate a report from within VBA. The report
gets its records from a parameter query
(called "Results"), where the only parameter (as filled in
in the "criteria" field of the query) is :
[Give the starting date : ]
the code :
Set rst = db.OpenRecordset("Results", dbOpenDynaset)
DoCmd.OpenReport strReportName, acViewPreview, , ,
acWindowNormal
DoCmd.Close acReport, strReportName, acSaveNo
The error message is : "too few parameters. Expected 1"
Apparently I should be able to get the starting date from
a parameter input screen, but how ?
Thanks for helping,
Wim