C
cdrennon
I need to generate a query which will list total sales by customer. I
have the first and last names from a Customer table, price from an
Inventory table, and quantity from a Sales table. In query design I
have lastname, firstname, and totalsales. For total sales I have
entered totalsales:=[Quantity]*[Price].
This will list the customer and the individual items*quantity, but
there is one line for every item purchased. I need the customer and
the total sales to show up as one line.
When i try sum([Quantity]*[Price]) for totalsales I get an error "You
tried to execute a query that does not include the specified
expression 'LastName' as part of an aggregate function."
Thanks
have the first and last names from a Customer table, price from an
Inventory table, and quantity from a Sales table. In query design I
have lastname, firstname, and totalsales. For total sales I have
entered totalsales:=[Quantity]*[Price].
This will list the customer and the individual items*quantity, but
there is one line for every item purchased. I need the customer and
the total sales to show up as one line.
When i try sum([Quantity]*[Price]) for totalsales I get an error "You
tried to execute a query that does not include the specified
expression 'LastName' as part of an aggregate function."
Thanks