Where is the name of your table in your SELECT query?
I don't use Access daily, but shouldn't your statement read something like:
SELECT DISTINCT Format(appointmentdate, 'mmmm')
FROM some_table_name_here AS distinctmonth
Or is "distinctmonth" the name of the table? In which case, I would advise dropping the AS word.