A
Art Marks
I'm currently opening a report where the date range is limited based on the
values of 2 textboxes on a form using code like this:
Private Sub cmdOpenrptWeight_Click()
DoCmd.OpenReport "rptWeight", acPreview, , "[Date]>=#" & TxtMinDate & "#
and [Date]<=#" & TxtMaxDate & "#"
End Sub
Problem is that the charts at the end of the report aren't affected. I'm
using an SQL SELECT statement for the RowSource of the charts.
Any solutions? Can I design the charts with the RowSource property set and
then modify that property in the sub shown above to include a WHERE clause
with the [Date] limited?
Thanks
--Art
values of 2 textboxes on a form using code like this:
Private Sub cmdOpenrptWeight_Click()
DoCmd.OpenReport "rptWeight", acPreview, , "[Date]>=#" & TxtMinDate & "#
and [Date]<=#" & TxtMaxDate & "#"
End Sub
Problem is that the charts at the end of the report aren't affected. I'm
using an SQL SELECT statement for the RowSource of the charts.
Any solutions? Can I design the charts with the RowSource property set and
then modify that property in the sub shown above to include a WHERE clause
with the [Date] limited?
Thanks
--Art