When running the below query I receive the error message:
"You tried to execute a query that does not include the specified expression <name> as part of an aggregate function"
I believe the error may be due to an incorrect syntax in the GROUP BY clause, but anything I use doesn't seem to work. Could anyone please help me understand what's wrong with this query? Thanks.
--
Not until I became a Network Administrator did the error message "See your Network Administrator for assistance" become petrifying.
"You tried to execute a query that does not include the specified expression <name> as part of an aggregate function"
I believe the error may be due to an incorrect syntax in the GROUP BY clause, but anything I use doesn't seem to work. Could anyone please help me understand what's wrong with this query? Thanks.
Code:
SELECT IIF(Station1 Is Not Null,Format((Date()+(Sum(Station1)/1964.28)),"Short Date"),"NOT APPLICABLE") AS OutToDateStation1
FROM tblSQFTByStation INNER JOIN tblOrder ON tblSQFTByStation.OrderID = tblOrder.OrderID
WHERE (Station1 Is Not Null)
GROUP BY 1;
--
Not until I became a Network Administrator did the error message "See your Network Administrator for assistance" become petrifying.