I need to divide the year up into 12 periods to determine the 'period number'. I'm considering using the code below: -
If Date >= DateValue("30/04/" & Year(Now)) And Date <= DateValue("27/05/" & Year(Now)) Then
Me!Period = 2
Exit Sub
End If
Unfortunately this means that I have to repeat this statement 12 times with the appropriate values for each period in. This seems rather unwieldy, could anyone suggest a better way?
Many thanks in advance.
Quote for the day : "The people walking around with a smile on their face today - bought the right Valentines present yesterday."
If Date >= DateValue("30/04/" & Year(Now)) And Date <= DateValue("27/05/" & Year(Now)) Then
Me!Period = 2
Exit Sub
End If
Unfortunately this means that I have to repeat this statement 12 times with the appropriate values for each period in. This seems rather unwieldy, could anyone suggest a better way?
Many thanks in advance.
Quote for the day : "The people walking around with a smile on their face today - bought the right Valentines present yesterday."