D
DawnTreader
Hello All
been a while since i posted an access problem but here is one that has
been rolling in my mind all day.
i have a "contract" database that i need to track customer contracts
with. my table has a start date and an end date. i also have a query
that calculates the number of months the contract is for.
what i need is a way to generate a grid that shows a month as
"populated". meaning that given the dates the contract is generating a
revenue each month. i am thinking this would be like a gantt chart,
but it is not as complicated. i dont think...
so what i would like it to do is this:
Contract StartDate EndDate Jan Feb Mar Apr May Jun Jul Aug
123 01/01/2010 08/30/2010 y y y y y y y y
124 03/01/2010 07/31/2010 y y y y
125 02/01/2010 06/30/2010 y y y y y
126 04/01/2010 06/30/2010 y y y
127 04/01/2010 08/30/2010 y y y y y
is there a way to get access to calculate that a month should be
"occupied" because of the start and end dates?
i am thinking that i am going to need another table to store the month
names. i was also thinking that sometimes because a customer might
cancel for a month i would have to store the months that the contract
is actually valid for in a table, probably a list generated based on
the start date and end date by some code. then have a field in that
table that the user can check or uncheck to say the month was "not
used".
i hope this is clear, thanks for any and all help!
been a while since i posted an access problem but here is one that has
been rolling in my mind all day.
i have a "contract" database that i need to track customer contracts
with. my table has a start date and an end date. i also have a query
that calculates the number of months the contract is for.
what i need is a way to generate a grid that shows a month as
"populated". meaning that given the dates the contract is generating a
revenue each month. i am thinking this would be like a gantt chart,
but it is not as complicated. i dont think...
so what i would like it to do is this:
Contract StartDate EndDate Jan Feb Mar Apr May Jun Jul Aug
123 01/01/2010 08/30/2010 y y y y y y y y
124 03/01/2010 07/31/2010 y y y y
125 02/01/2010 06/30/2010 y y y y y
126 04/01/2010 06/30/2010 y y y
127 04/01/2010 08/30/2010 y y y y y
is there a way to get access to calculate that a month should be
"occupied" because of the start and end dates?
i am thinking that i am going to need another table to store the month
names. i was also thinking that sometimes because a customer might
cancel for a month i would have to store the months that the contract
is actually valid for in a table, probably a list generated based on
the start date and end date by some code. then have a field in that
table that the user can check or uncheck to say the month was "not
used".
i hope this is clear, thanks for any and all help!
