Thanks June.
Just one more thing. Seeing as the report will display the same data as the subform based on the date criteria for roughly 10 different summarised values would I be better passing in the txtFundsstartDate and txtFundsEndDate as paramaters and then using textboxes with the same control source as the subform to generate the totals such as
Code:
=Nz(DSum("AmountPaid","PaymentsReceived","[EventType]=6 AND [DateReceived] BETWEEN #" & Nz([txtFundsStartDate],1/1/1900) & "# AND #" & Nz([txtFundsEndDate],12/31/2900) & "#"))
in the report.
I'm unsure of how to pass textbox data from a subform to a report or if this is possible. Each event would need to draw in its own eventtype data in the report. All I'd need is to know what date criteria the user had specified in the subform.
I've also found this
Code:
DoCmd.OpenReport "MyReport", View:=acViewPreview, OpenArgs:=(Me.MyTextBox )
Should I follow this method and is there anything I'm missing.
Thanks again for any help.
Thanks again for any help on this.