S
SAm
i have the following field in a query:
IIf(Month([PeriodStartDate])<>Month([PeriodEndDate]),DateDiff("y",[PeriodStartDate],"1/" & Month([PeriodEndDate]) & "/" & Year([PeriodEndDate])))
basically, i need to find the last day of the month or the first day of the
month. how do i do that.
what i am doing here is trying to figure out how many days are from the
periodstartdate until the end of the month.
the above if statment produces the right number only for periodstartdates in
2004 and periodenddates in 2005 ??????????!!!!!!!!!
thanks, sam
IIf(Month([PeriodStartDate])<>Month([PeriodEndDate]),DateDiff("y",[PeriodStartDate],"1/" & Month([PeriodEndDate]) & "/" & Year([PeriodEndDate])))
basically, i need to find the last day of the month or the first day of the
month. how do i do that.
what i am doing here is trying to figure out how many days are from the
periodstartdate until the end of the month.
the above if statment produces the right number only for periodstartdates in
2004 and periodenddates in 2005 ??????????!!!!!!!!!
thanks, sam