I have this error: You tried to execute a query that does not include the specified expression 'Sales' as part of an aggregate function.
And my query is:
MyCommand.CommandText = "SELECT Sales, Created_Date FROM tblSales" & _
"where Year(Created_Date)='" & year & "' and Month(Created_Date)='" & month & "' & _
"GROUP BY Created_Date"
What does this mean and how to solve it?
Thanks in advance!