Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Can someone shed some light on converting a month name to a month number on the fly? (January = 1)
Henry suggested the reverse conversion on a thread from month number to month name: Month(MakeDate(2012,MonthNo))
Thanks,
Xinzhen
If MonthName is read as a true date field then simply doing Num(MonthField) should give you the Month Number. If MonthName is read as a text, you can try this:
Num(Month(Date#(MonthName, 'MMMM')))
If MonthName is read as a true date field then simply doing Num(MonthField) should give you the Month Number. If MonthName is read as a text, you can try this:
Num(Month(Date#(MonthName, 'MMMM')))
Thank you Sunny. That worked!
Xinzhen