postermmxvicom
Programmer
I have already made a work around for this problem, but I would like to understand it - not just hack a solution.
I am making a query which groups entries by month and gives me totals. The error I get is:
The problem is in this little snippet:
DateMelted is a Date. I presume MonthName is throwing the error because Month([DateMelted]) returns the month as an integer and works fine. Furthermore if I test something like this:
I get no errors and the expression works as anticipated.
One last thing: Sometimes I wonder; "Is that someone's signature? Or do they type that at the end of each post?
I am making a query which groups entries by month and gives me totals. The error I get is:
Data Type Mismatch in criteria expression
The problem is in this little snippet:
Code:
MonthName(Month([DateMelted]))
DateMelted is a Date. I presume MonthName is throwing the error because Month([DateMelted]) returns the month as an integer and works fine. Furthermore if I test something like this:
Code:
MonthName(Month(Now()))
I get no errors and the expression works as anticipated.
One last thing: Sometimes I wonder; "Is that someone's signature? Or do they type that at the end of each post?