lstantliff
Registered User.
- Local time
- Today, 18:53
- Joined
- Apr 28, 2006
- Messages
- 24
Hiya!
I am using Access 2000 and need to write an event procedure that tells a report to open the subreports within it upon open. I have attached a form to enter parameters for the reports, so my hope is that the form will provide the parameters for all the subreports. I have no idea how to write Visual Basic. I would appreciate any help I can get. My report is called RptAnnualProdSum, the form is called AnnualDialog and the subreports are AnnualReportHeading, RptAnnualDirect, RptAnnualIndirect, and RptAnnualSummary. They are in that order in the report. I need all reports to get their parameters from the form. There are 4 parameters [Forms]![AnnualDialog]![Plant], [Forms]![AnnualDialog]![Fiscal Year], [Forms]![AnnualDialog]![Dept], [Forms]![AnnualDialog]![Shift]. The OnOpen property in the report is set to open the form. Thanks for any help or direction anyone can give me. The form opens, I enter the parameter, press OK (which has a SetValue macro), then nothing happens!
Laura
I am using Access 2000 and need to write an event procedure that tells a report to open the subreports within it upon open. I have attached a form to enter parameters for the reports, so my hope is that the form will provide the parameters for all the subreports. I have no idea how to write Visual Basic. I would appreciate any help I can get. My report is called RptAnnualProdSum, the form is called AnnualDialog and the subreports are AnnualReportHeading, RptAnnualDirect, RptAnnualIndirect, and RptAnnualSummary. They are in that order in the report. I need all reports to get their parameters from the form. There are 4 parameters [Forms]![AnnualDialog]![Plant], [Forms]![AnnualDialog]![Fiscal Year], [Forms]![AnnualDialog]![Dept], [Forms]![AnnualDialog]![Shift]. The OnOpen property in the report is set to open the form. Thanks for any help or direction anyone can give me. The form opens, I enter the parameter, press OK (which has a SetValue macro), then nothing happens!
Laura