Using a button on a form, I use the following code to dictate what records appear in the report, basically whatever records are on the form.
DoCmd.OpenReport "renewalreport", acViewPreview, , "[Renewal]=Forms![Renewalform]![Renewal]"
My problem is that the form is a continuous form and displays several records, but when I use the above code only one record is displayed on the report.
So how do I get the report to display all the records from the report? Is there a way to base a report on a form?
Thnx
DoCmd.OpenReport "renewalreport", acViewPreview, , "[Renewal]=Forms![Renewalform]![Renewal]"
My problem is that the form is a continuous form and displays several records, but when I use the above code only one record is displayed on the report.
So how do I get the report to display all the records from the report? Is there a way to base a report on a form?
Thnx