Hi all, I had a query that was working but has since broken due to one of the tables being moved, now I can't get the DatePart function to work.
I'm trying to get the year from today's date by using the expression Year: DatePart("yyyy",Date())
This was working before, (although for some reason the saved version says Year: DatePart("yyyy"IDate()) <---- note the pipe | character in there.
Now, I can't get it to work at all. It just says "The expression you entered contains invalid syntax. You omitted an operand or operator, you entered and invalid character co comma, or you entered text without surrounding it in quotation marks.
As far as I can research, the syntax is correct, it just refuses to work. Any ideas on the cause/fix for this?
I'm trying to get the year from today's date by using the expression Year: DatePart("yyyy",Date())
This was working before, (although for some reason the saved version says Year: DatePart("yyyy"IDate()) <---- note the pipe | character in there.
Now, I can't get it to work at all. It just says "The expression you entered contains invalid syntax. You omitted an operand or operator, you entered and invalid character co comma, or you entered text without surrounding it in quotation marks.
As far as I can research, the syntax is correct, it just refuses to work. Any ideas on the cause/fix for this?