G
Geraldine Hobley
Hello,
I have a report called MyLetter, it is bound to a
stored procedure called MyStoredProcedure with parameters
@Order_id and @job_id
Currently the recordsource - MyStoredProcedure
and input Parameters - @order_id AND @Job_id are set in
the properties of the report, and the report is run as
follows
Dim Report_Name As String
Report_Name = "MyLetter"
ReportDest = 2 'print preview
DoCmd.OpenReport Report_Name, ReportDest
MaximizeReportWindow Report_Name
I would like to pass the recordsource and the input
parameters in the code, not in the properties, because I
don't know what they are until I come to run the report.
Is there any way that I can do this.
Any help would be greatly appreciated.
Geri
I have a report called MyLetter, it is bound to a
stored procedure called MyStoredProcedure with parameters
@Order_id and @job_id
Currently the recordsource - MyStoredProcedure
and input Parameters - @order_id AND @Job_id are set in
the properties of the report, and the report is run as
follows
Dim Report_Name As String
Report_Name = "MyLetter"
ReportDest = 2 'print preview
DoCmd.OpenReport Report_Name, ReportDest
MaximizeReportWindow Report_Name
I would like to pass the recordsource and the input
parameters in the code, not in the properties, because I
don't know what they are until I come to run the report.
Is there any way that I can do this.
Any help would be greatly appreciated.
Geri