D
DIW
Creating a report that totals quantity sold of part no's by the first 8
digits of the number (part no field contains style, color & size codes, but I
am only concerned with style which are the first 8 digits). First created a
query with Part no, description, and quantity fields. Quantity field is
totaled by "sum", other two are "group by". Then created report based on this
query, with one "stock no" group and with a "stock no" footer section in
which I placed text box containing "left$([stock no],8)", a text box for
"description" and summary box containing "sum(sumofquantity)". This works
fine - I get a nice report sorted by stock no, that summarized quantity sold
only by style (the 1st digits), but I want the report to be sorted by this
quantity sold, descending order, so most sold are at top. Tried to add
"sumofquantity" field to top of sort order, but no go 'cause it sorts on the
underlying data in the group, I guess, and results in wrong data (and
improper sort). Help/suggestions would be much appreciated. Thanks!
digits of the number (part no field contains style, color & size codes, but I
am only concerned with style which are the first 8 digits). First created a
query with Part no, description, and quantity fields. Quantity field is
totaled by "sum", other two are "group by". Then created report based on this
query, with one "stock no" group and with a "stock no" footer section in
which I placed text box containing "left$([stock no],8)", a text box for
"description" and summary box containing "sum(sumofquantity)". This works
fine - I get a nice report sorted by stock no, that summarized quantity sold
only by style (the 1st digits), but I want the report to be sorted by this
quantity sold, descending order, so most sold are at top. Tried to add
"sumofquantity" field to top of sort order, but no go 'cause it sorts on the
underlying data in the group, I guess, and results in wrong data (and
improper sort). Help/suggestions would be much appreciated. Thanks!