I am having a problem with highlighting the birthday months in a list of people. If their birthday is today it is highlighted as yellow, if (this month)Orange and people whose birthday is next month (OrangeRed). I am using the 'TemplateFill' section to this with the following code
If(Day(ThisItem.DOB) = Day(Today()) And Month(ThisItem.DOB) = Month(Today()),Yellow,Month(ThisItem.DOB) = Month(Today()),Orange ,Month(ThisItem.DOB) = Month(Today())+1,OrangeRed,White)
This works EXCEPT during December where of course the next month should be 1 but calculates to 13.
Any ideas on how to fix it?
Simple when you know how!
Thank you!
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional