Hi,
I'm looking for a solution for the following:
I have a table with two datefields, the startdate of a study and the end date. The studies vary between 2 to 6 years and start and different months/days.
I would like to fill a table with fields containing the months for each year that falls within the study. Example:
startdate 1-3-2012
enddate 28-2-2015
should end up in four record like:
[year]: 2012; [months]: 10
[year]: 2013; [months]: 12
[year]: 2014; [months]: 12
[year]: 2015; [months]: 2
a vba or sql solution is welcome.
EasyIT
"Do you think that’s air you're breathing?
I'm looking for a solution for the following:
I have a table with two datefields, the startdate of a study and the end date. The studies vary between 2 to 6 years and start and different months/days.
I would like to fill a table with fields containing the months for each year that falls within the study. Example:
startdate 1-3-2012
enddate 28-2-2015
should end up in four record like:
[year]: 2012; [months]: 10
[year]: 2013; [months]: 12
[year]: 2014; [months]: 12
[year]: 2015; [months]: 2
a vba or sql solution is welcome.
EasyIT
"Do you think that’s air you're breathing?