Here's my dilemma. I am putting together a trend report using
PivotCharts and so the query that I am trying to construct basically
would look at the "Date_Enter ed" for a record and if the "day" portion
of the Date is <= 15 (ie 1/1/2006 - 1/15/2006) it will populate a temp
column with the actual month and year.
However if the "day" portion of the Date is > 15 (ie 1/16/2006 -
1/31/2006) it will populate a temp column with the following month
(actual month + 1) and year.
This the is the current expression as I have it constructed:
MonthOpened: IIf(Month([date_entered])>9 And
Day([date_entered])<=15,Year([date_entered]) &
Month([date_entered]),Year([date_entered]) & '0' &
Month([date_entered])) Or IIf(Month([date_entered])>9 And
Day([date_entered])>15,Year([date_entered]) & Month([date_entered]) +
1,Year([date_entered]) & '0' & Month([date_entered]) + 1)
Anhy guidance that I can get from any of you Access MVPs woud be
extremely welcome.
Thanks
Marc
PivotCharts and so the query that I am trying to construct basically
would look at the "Date_Enter ed" for a record and if the "day" portion
of the Date is <= 15 (ie 1/1/2006 - 1/15/2006) it will populate a temp
column with the actual month and year.
However if the "day" portion of the Date is > 15 (ie 1/16/2006 -
1/31/2006) it will populate a temp column with the following month
(actual month + 1) and year.
This the is the current expression as I have it constructed:
MonthOpened: IIf(Month([date_entered])>9 And
Day([date_entered])<=15,Year([date_entered]) &
Month([date_entered]),Year([date_entered]) & '0' &
Month([date_entered])) Or IIf(Month([date_entered])>9 And
Day([date_entered])>15,Year([date_entered]) & Month([date_entered]) +
1,Year([date_entered]) & '0' & Month([date_entered]) + 1)
Anhy guidance that I can get from any of you Access MVPs woud be
extremely welcome.
Thanks
Marc
Comment