B
Bill H.
How do I set a filter, and turn it on, on a subreport from a form?
I have a report that has one subreport which includes dates of attendance.
A form first ask for a start and end dates, and then runs the main report.
The query for the main report inclues the date field in question, but when I
try using the daterange as a filter on the main report ( DoCmd.OpenReport
stDocName, acPreview, , DateRange), I either get nothing or all (depending
on what I put in as the date range) of the records.
This approach:
Reports!Rpt_HomeVisitLog_subform.Filter = DateRange
Reports!Rpt_HomeVisitLog_subform.FilterOn = True
doesn't work as Access says the form is not open or doesn't exist (which it
does).
Thanks.
I have a report that has one subreport which includes dates of attendance.
A form first ask for a start and end dates, and then runs the main report.
The query for the main report inclues the date field in question, but when I
try using the daterange as a filter on the main report ( DoCmd.OpenReport
stDocName, acPreview, , DateRange), I either get nothing or all (depending
on what I put in as the date range) of the records.
This approach:
Reports!Rpt_HomeVisitLog_subform.Filter = DateRange
Reports!Rpt_HomeVisitLog_subform.FilterOn = True
doesn't work as Access says the form is not open or doesn't exist (which it
does).
Thanks.