A
Aurora
I am using Access 2003
I have a query for a report that counts Status columns. Ex: Status 10,
Status 20, Status 50. Each quote has status code (depending where the quote
is in our system). My report tells me where the quotes are by status. In my
query I created calculated fields that reads -ID10:
IIf(tableQuotes!statusID=10,1,0). I did this for each status code. Then I
was able to sum the status columns for each sales person. Now I want to add
up all of the Status fields by sales person. So I created another calculated
field in my query - =sum([id10]+[id20]+[id50]). This does not work. I get
the following message. "YOU TRIED TO EXECUTE A QUERY THAT DOES NOT INCLUDE
THE SPECIFIED EXPRESSION 'ID' AS PART OF AN AGRREGATE FUNCTION." I have no
idea what this means or what I have to do to correct the error. Can anyone
point me in the right direction??
aurora
I have a query for a report that counts Status columns. Ex: Status 10,
Status 20, Status 50. Each quote has status code (depending where the quote
is in our system). My report tells me where the quotes are by status. In my
query I created calculated fields that reads -ID10:
IIf(tableQuotes!statusID=10,1,0). I did this for each status code. Then I
was able to sum the status columns for each sales person. Now I want to add
up all of the Status fields by sales person. So I created another calculated
field in my query - =sum([id10]+[id20]+[id50]). This does not work. I get
the following message. "YOU TRIED TO EXECUTE A QUERY THAT DOES NOT INCLUDE
THE SPECIFIED EXPRESSION 'ID' AS PART OF AN AGRREGATE FUNCTION." I have no
idea what this means or what I have to do to correct the error. Can anyone
point me in the right direction??
aurora