I have a textbox with the following formula:
[txt1stdate] = DateSerial(Year(DateAdd("m",-1,Date())),Month(DateAdd("m",-1,Date())),1)
which comes out as the 1st day of the previous month (i.e. 01/07/2003).
What I would like to do is create another textbox which works out a date from the above textbox, The date I would like to work out is:
IF the MONTH of [txt1stdate] is 3(march), 4(april), 5(may), 6(june),7(july) or 8(august) then put 01/03/2003(currentyr)
BUT IF
the MONTH of [1sttxtdate] is 9(september), 10(october), 11(november), 12(december),1(january) or 2(february) then put 01/09/2002(prioryr)
Can this be done?
Regards
Carly
[txt1stdate] = DateSerial(Year(DateAdd("m",-1,Date())),Month(DateAdd("m",-1,Date())),1)
which comes out as the 1st day of the previous month (i.e. 01/07/2003).
What I would like to do is create another textbox which works out a date from the above textbox, The date I would like to work out is:
IF the MONTH of [txt1stdate] is 3(march), 4(april), 5(may), 6(june),7(july) or 8(august) then put 01/03/2003(currentyr)
BUT IF
the MONTH of [1sttxtdate] is 9(september), 10(october), 11(november), 12(december),1(january) or 2(february) then put 01/09/2002(prioryr)
Can this be done?
Regards
Carly