G
Guest
I see many posts have been made on this, and the advice is always to repeat
the calculated control formula itself in the group level's summing control.
Quite valid if its just simply totaling all the records.
I am setting up a database for a loyalty program in my shop. Each fortnight
is a separate period in which to qualify purchases must exceed a certain
figure. The threshhold for singles is lower than for a family.
As a result, the fortnightly subtotal (a calculated control) is a 3 line
test of nested "Iif"s. It works well so far (calculating a percentage of
total purchases for that fortnight only where the purchases exceed the
relevant fortnightly threshhold), but now I need to calculate the grand total
of each member's bonuses for the year. Reapplying the same formula at the
customer grouping level would treat the whole year as a single period instead
of properly calculating by the fortnight.
My original instinct was to set up a Query that sub-totals each fortnight
and base the report on that. However, searching "Help" and looking at
various examples I couldn't find any indication that you can sub-total
queries into grouping levels and figured that reports were intended for that
function.
Ideally, the ability to build a query (update?) that would calculate each
fortnight's bonuses and enter them into a separate table would be the go. I
wonder if that's feasible..... Any thoughts? Oh, I'm using Access 2000 on Win
XP.
the calculated control formula itself in the group level's summing control.
Quite valid if its just simply totaling all the records.
I am setting up a database for a loyalty program in my shop. Each fortnight
is a separate period in which to qualify purchases must exceed a certain
figure. The threshhold for singles is lower than for a family.
As a result, the fortnightly subtotal (a calculated control) is a 3 line
test of nested "Iif"s. It works well so far (calculating a percentage of
total purchases for that fortnight only where the purchases exceed the
relevant fortnightly threshhold), but now I need to calculate the grand total
of each member's bonuses for the year. Reapplying the same formula at the
customer grouping level would treat the whole year as a single period instead
of properly calculating by the fortnight.
My original instinct was to set up a Query that sub-totals each fortnight
and base the report on that. However, searching "Help" and looking at
various examples I couldn't find any indication that you can sub-total
queries into grouping levels and figured that reports were intended for that
function.
Ideally, the ability to build a query (update?) that would calculate each
fortnight's bonuses and enter them into a separate table would be the go. I
wonder if that's feasible..... Any thoughts? Oh, I'm using Access 2000 on Win
XP.