My goal is to print a record every week between 2 dates. For example, let's say I have a beginning date and expiration date respectively of 9/25/08 and 9/25/09
The goal is to track the "active" customer weekly during this range. Then I will do a "count" function to count the number of successions, and this should solve my problem of counting active clients weekly with a push of a button. Doing this manually every month is very difficult!
So with the above example, just doing general math, the interval would roughly be 365/7 = 52 weeks. Thus, because the account was an active client for 52 weeks, I want to "print" these records 52 times. The beginning date will increase every 7 days or every week and will constantly be compared with the expiration date which will remain constant at 9/25/09. Once it hits 9/25/09, the loop will stop.
A sample output should look like:
Interval, Expire, Name of account
9/25/08, 9/25/09, Account Name
10/2/08, 9/25/09, Account Name
10/9/08, 9/25/09, Account Name
10/16/08, 9/25/09, Account Name
.
.
.
9/25/09, 9/25/09, Account Name
Then we go onto the next client, etc.
I also would like to know if there is a way to do this looping through a query rather than DAO.
The goal is to track the "active" customer weekly during this range. Then I will do a "count" function to count the number of successions, and this should solve my problem of counting active clients weekly with a push of a button. Doing this manually every month is very difficult!
So with the above example, just doing general math, the interval would roughly be 365/7 = 52 weeks. Thus, because the account was an active client for 52 weeks, I want to "print" these records 52 times. The beginning date will increase every 7 days or every week and will constantly be compared with the expiration date which will remain constant at 9/25/09. Once it hits 9/25/09, the loop will stop.
A sample output should look like:
Interval, Expire, Name of account
9/25/08, 9/25/09, Account Name
10/2/08, 9/25/09, Account Name
10/9/08, 9/25/09, Account Name
10/16/08, 9/25/09, Account Name
.
.
.
9/25/09, 9/25/09, Account Name
Then we go onto the next client, etc.
I also would like to know if there is a way to do this looping through a query rather than DAO.
Comment