I'm trying to build a query that sums the value in one field if the "BOLdate" value is within +or-20 days of each other, when it's the same ship. I tried to do this within a report or the underlying query, but haven't had any luck. I can sort and group by month, but don't know how to have the query or report "compare" the ships and the dates.
Table:
Ship BOLdate Value
A 01/01/01 5
A 01/15/01 10
B 01/20/01 20
A 02/25/01 25
The query would then return three lines:
Ship Value
A 15
B 20
A 25
Thanks.
Table:
Ship BOLdate Value
A 01/01/01 5
A 01/15/01 10
B 01/20/01 20
A 02/25/01 25
The query would then return three lines:
Ship Value
A 15
B 20
A 25
Thanks.