Need to extract distinct month name from date column.
I have found something like this
-----
SELECT DISTINCT Format(appointmentdate,'mmmm') AS distinctmonth
-----
which does not work.
Please advise. Thank You.
SELECT DISTINCT Format(appointmentdate,'mmmm') AS distinctmonth
Works for me (access2003), as this:
SELECT DISTINCT MonthName(Month(appointmentdate)) AS distinctmonth
Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.