I suppose you could use the datediff()function and mod() functions to determine the day of the week is relative to a specific different day - ex how many days away from the most recent monday mod(7) will tell you when the week starts and ends, its a vague answer but I think it could work, dont really have time to work on it now
I googled the functions datediff()
http://livedocs.macromedia.com/coldf...s/functi58.htm
The syntax for the DateDiff function is:
DateDiff("datepart", "date1", "date2")
datepart - String specifying the units in which to count; for example yyyy requests a date difference in whole years.
yyyy: Years
q: Quarters
m: Months
y: Days of year (same as d)
d: Days
w: Weekdays (same as ww)
ww: Weeks
h: Hours
n: Minutes
s: Seconds
date1 - beginning date to be measured, in the range 100 AD-9999 AD.
date2 - ending ending date to be measured, in the range 100 AD-9999 AD.
and mod()
The syntax for the Mod function is:
Mod( number, divisor )
http://www.asp101.com/articles/steven/mod/default.asp
http://www.techonthenet.com/excel/formulas/mod.php
-Measure x number of days from the first monday of the year, mod will determine what day if the week it is, it can then be determined when the beginning and end of the week is using math. You can query based on specific day range once you know when the beginning and end of the week is, totals can beaccumulated and reset based on how many days or weeks from the starting point.
Im a little busy to provie an example but Im sure this will get the creative minded to provide a working example, if not i could be persuauded to provide a demo this weekend, send me an email
[email protected]
cheers
scott