G
Guest
I have a Sales Order report showing total sales by product group within
customer
I have included a subreport in the report footer section in which I show the
overall total for each product group as well as a total for the report.
When I filter the report to only show a specific product group the subreport
shows all product groups in the record set rather than the selected product
group.
strStartDate = "OrderDate >= Forms![Sales Order Report
Dialogue]!StartDate And OrderDate <= Forms![Sales Order Report
Dialogue]!EndDate"
strWhereProd = "SOProductGroup = Forms![Sales Order Report
Dialogue]!SelectProdGroup"
SOStatus = " And xstep3 = ""O"" "
DoCmd.OpenReport "Sales Orders Report", PrintMode, , strWhereProd & " And "
& strStartDate & SOStatus
How to I get this strWhereProd & " And " & strStartDate & SOStatus to act
on the subreport.
customer
I have included a subreport in the report footer section in which I show the
overall total for each product group as well as a total for the report.
When I filter the report to only show a specific product group the subreport
shows all product groups in the record set rather than the selected product
group.
strStartDate = "OrderDate >= Forms![Sales Order Report
Dialogue]!StartDate And OrderDate <= Forms![Sales Order Report
Dialogue]!EndDate"
strWhereProd = "SOProductGroup = Forms![Sales Order Report
Dialogue]!SelectProdGroup"
SOStatus = " And xstep3 = ""O"" "
DoCmd.OpenReport "Sales Orders Report", PrintMode, , strWhereProd & " And "
& strStartDate & SOStatus
How to I get this strWhereProd & " And " & strStartDate & SOStatus to act
on the subreport.