Hi, i am trying to get the start date and end date of any given month. If Month(Now)-2 falls back into the previous year it has a fit.
Can anyone help!
here is the code i am using...
Mid(MonthName(Month(Now)-2),1,3)
StartMonth = DateSerial(Year(Now), Month(Now)-2 + iOffset, 1)
EndMonth = DateSerial(Year(Now), Month(Now)-2 + 1, 0)
Can anyone help!
here is the code i am using...
Mid(MonthName(Month(Now)-2),1,3)
StartMonth = DateSerial(Year(Now), Month(Now)-2 + iOffset, 1)
EndMonth = DateSerial(Year(Now), Month(Now)-2 + 1, 0)