E
emily.knick
I need to create separate Microsoft Excel files with the data from a
query if the subtotal for a group goes over a certain amount.
For example, I have the following data:
Group Price
A $100
B $200
C $300
A $200
A $400
B $900
D $100
I'd like to output the A group to one report because their total
exceed my threshold of $500. I'd like to output the B group to
another report because it exceeds $500. Finally, I'd like one report
for C and D combined because neither group exceeds $500 (total can be
whatever it needs to be as long as the individual group doesn't exceed
$500). I need to export each line item to the MS Excel file.
I think I need some sort of loop, but I don't know.....
query if the subtotal for a group goes over a certain amount.
For example, I have the following data:
Group Price
A $100
B $200
C $300
A $200
A $400
B $900
D $100
I'd like to output the A group to one report because their total
exceed my threshold of $500. I'd like to output the B group to
another report because it exceeds $500. Finally, I'd like one report
for C and D combined because neither group exceeds $500 (total can be
whatever it needs to be as long as the individual group doesn't exceed
$500). I need to export each line item to the MS Excel file.
I think I need some sort of loop, but I don't know.....