I was hoping to solve this using a query, but a note on the my original thread said to try coding...
We are using DateDiff to find the number of months. But we need to see how many months are in each year that a contract is valid - Here's an example of the results we're looking for:
A contract starts on 6/1/03 and ends on 6/30/05. How many months in '03, how many months in '04, how many months in '05.
Our result needs to be:
2003 - 7 months
2004 - 12 months
2005 - 6 months
Any ideas on how to do this?
We are using DateDiff to find the number of months. But we need to see how many months are in each year that a contract is valid - Here's an example of the results we're looking for:
A contract starts on 6/1/03 and ends on 6/30/05. How many months in '03, how many months in '04, how many months in '05.
Our result needs to be:
2003 - 7 months
2004 - 12 months
2005 - 6 months
Any ideas on how to do this?