I have these fields in a query giving a customer's orders by Delivery Date
OrderID
CustomerID
OrderVolume
DeliveryDate
LoyaltyWeeks
StartDate
StartDate is calculated as DateAdd("d",-[LoyaltyWeeks]*7,[DeliveryDate])
For any new order a loyalty scheme will give them a discount if the total volumes bought from StartDate up to the new order's DeliveryDate exceed a target value.
To begin the calculation I need to sum OrderVolume for all orders between StartDate and DeliveryDate.
Is this possible?