Hi Loed,
I changed the code as per the above but still not getting previous year.
And I am not able to get your explanation properly. If the month is Jan, then it should get the data of jan, december, November.
IF Month1 < 1.
YEAR = YEAR - 1.
Month1 = Month1 + 12.
Can you pls explain the above. With a situation where a user enters jan 15 2015.
Thanks,
Ramarao.