M
MartyO
Hi there,
I'm trying to do a simple calculation with dates (getting the number of
weeks in the school year that an employee is working), and then write the
number to a field in an update query... and I keep getting the aggregate
function error. Here is a sample,
UPDATE tblEmployee, SchoolDays SET tblEmployee.AttnBPBegBal =
DateDiff("ww",Min([SchoolDays]![Date]),Max([SchoolDays]![Date])-3)
WHERE (((tblEmployee.HireDate)<=#8/27/2007#));
and I get "You've tried to execute a query that does not include the
specified expression "AttnBPBegBal' as part of the aggregate function".
I tried also to create the field on the fly instead of an update query and
get the same error, but it always refers to the first field in the query grid
as the problem.
What am I missing?
Thanks in advance for your help!!
Marty
I'm trying to do a simple calculation with dates (getting the number of
weeks in the school year that an employee is working), and then write the
number to a field in an update query... and I keep getting the aggregate
function error. Here is a sample,
UPDATE tblEmployee, SchoolDays SET tblEmployee.AttnBPBegBal =
DateDiff("ww",Min([SchoolDays]![Date]),Max([SchoolDays]![Date])-3)
WHERE (((tblEmployee.HireDate)<=#8/27/2007#));
and I get "You've tried to execute a query that does not include the
specified expression "AttnBPBegBal' as part of the aggregate function".
I tried also to create the field on the fly instead of an update query and
get the same error, but it always refers to the first field in the query grid
as the problem.
What am I missing?
Thanks in advance for your help!!
Marty