Summarize by the "Y"/"N" field in the report...then in the Footer for that field put a ontrol to calculate the sum. Is that what you're looking for?
The problem with that is I can't summarize by the "Y/N" because they are text and not numeric fields. By doing summary in the reports, I get a sum for all pieces of "StyleA." I am looking to create a Sum for all pieces of "StyleA with Y" and a Sum for all pieces of "StyleA with N." I can do it in Excel, but haven't been able to translate that into Access.
In the Design view, I get a "=Sum[qty]". Is it possible to change it to something along the lines of "=Sum[qty] if TableC=Y"?
For the sorting and grouping of the report, sort by Style first, then by the "Y/N" field. Basically laid out, the report should look like this:
StyleA
Y
Sum
N
Sum
You'd put the Sum expressions in the Footer for the "Y/N" field...so that would be the sum of the quantity where "Y" and "StyleA". Hope that helps.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.