Hi, I have two tables linked in a one-to-many fashion. One contains the Order#, Amount, and Status and the other contains Credits among other things. It looks something like this:
Order# Invoice Amount Status Credits
1 A $10 H $1
1 A $10 H $4
1 B $25 S $15
2 A $15 H $0
2 B $100 G $22
2 B $100 G $19
...
Okay, since it is a one-to-many link, I grouped by Order# then by Status and summed up the Credits to get rid of the duplicates. Now, the problem is that I want to have 2 sums in each Order# group footer, one for the Amounts that are H status and another that is for the non H status. I searched the forum and one solution looked like what I needed, but it did not work. The suggestion was that 2 running totals should be used, one being a count that was reset each subgroup Status, and another that would be a sum running total that evaluated each time #Count = 1(and in my specific case when Status=H and when Status<>H). The problem with this is that it gives me an error saying "A running total cannot refer to a print time formula." I have been trying to figure this out for a while now, does anyone have any suggestions on how to create the subtotals I need? Any help would be greatly appreciated.
Order# Invoice Amount Status Credits
1 A $10 H $1
1 A $10 H $4
1 B $25 S $15
2 A $15 H $0
2 B $100 G $22
2 B $100 G $19
...
Okay, since it is a one-to-many link, I grouped by Order# then by Status and summed up the Credits to get rid of the duplicates. Now, the problem is that I want to have 2 sums in each Order# group footer, one for the Amounts that are H status and another that is for the non H status. I searched the forum and one solution looked like what I needed, but it did not work. The suggestion was that 2 running totals should be used, one being a count that was reset each subgroup Status, and another that would be a sum running total that evaluated each time #Count = 1(and in my specific case when Status=H and when Status<>H). The problem with this is that it gives me an error saying "A running total cannot refer to a print time formula." I have been trying to figure this out for a while now, does anyone have any suggestions on how to create the subtotals I need? Any help would be greatly appreciated.