T
Tamira
Hi, I'm a new user since last week.
I made a query that calculates wages based on the pay rate and hours that
are entered in the original table.
This calculates the motnhly wages for each employee, but I need a Totals row
that calculates the sum of all employees' monthly wages to see how much the
company pays out in wages each months.
At first I tried to add columns in the design view with Sum([July Pay]), but
I got a bunch of error messages. Then I discovered the "Totals" row in the
design view. I click "Sum" under each month's pay. But I don't know what to
enter in the Totals row in the columns of "Employee Name" "Employment type"
"Hours worked" ...
Anyway when I don't fill in anything in their Totals row, I get the error
message "You tried to execute a query that does not include the specified
expression "Employee Name" as part of an aggregate function."
When I choose "Group by" or "Where" (I have no clue what these do) for
Employee Name or Hours Worked then it prompts me for a numeric value for
number of Hours Worked before running the query. I don't know the total hours
worked, the query is supposed to calculate that!
Anyway now I'm stuck because I saved changes and now when I want to open my
query to tinker with the calculations in the design view, it won't open at
all anymore, saying "You tried to execute a query that does not include the
specified expression "Employee Name" as part of an aggregate function."
HEEELP!
Thanks!
I made a query that calculates wages based on the pay rate and hours that
are entered in the original table.
This calculates the motnhly wages for each employee, but I need a Totals row
that calculates the sum of all employees' monthly wages to see how much the
company pays out in wages each months.
At first I tried to add columns in the design view with Sum([July Pay]), but
I got a bunch of error messages. Then I discovered the "Totals" row in the
design view. I click "Sum" under each month's pay. But I don't know what to
enter in the Totals row in the columns of "Employee Name" "Employment type"
"Hours worked" ...
Anyway when I don't fill in anything in their Totals row, I get the error
message "You tried to execute a query that does not include the specified
expression "Employee Name" as part of an aggregate function."
When I choose "Group by" or "Where" (I have no clue what these do) for
Employee Name or Hours Worked then it prompts me for a numeric value for
number of Hours Worked before running the query. I don't know the total hours
worked, the query is supposed to calculate that!
Anyway now I'm stuck because I saved changes and now when I want to open my
query to tinker with the calculations in the design view, it won't open at
all anymore, saying "You tried to execute a query that does not include the
specified expression "Employee Name" as part of an aggregate function."
HEEELP!
Thanks!