J
jwang036
I have a big table with periods, daily number within each period, etc. I need
to calculate over 50 weeks' weekly sum. So I find what period that week is
in, extract the according daily number, then sum them up. I have set up 1
menu-macro with 3 queries (1. make table of 1st week. 2. repeat append into
that table. 3 sum up) to do that.
However, I still need to enter at least the start date (via query parameter
[Start Date]) of every week, so the query can go to find the according period
and I have to do it over 50 times every time I'm doing this.
The logic is very simple. As long as I enter the 1st start date, the 2nd
input is the 1st+7 days...I've tried many ways that I can think of, but
didn't work. Any idea? I'm not good at writing program in access, so I prefer
using queries to work around it. Thanks in advance.
to calculate over 50 weeks' weekly sum. So I find what period that week is
in, extract the according daily number, then sum them up. I have set up 1
menu-macro with 3 queries (1. make table of 1st week. 2. repeat append into
that table. 3 sum up) to do that.
However, I still need to enter at least the start date (via query parameter
[Start Date]) of every week, so the query can go to find the according period
and I have to do it over 50 times every time I'm doing this.
The logic is very simple. As long as I enter the 1st start date, the 2nd
input is the 1st+7 days...I've tried many ways that I can think of, but
didn't work. Any idea? I'm not good at writing program in access, so I prefer
using queries to work around it. Thanks in advance.