Use this --
Nz([Field1],0)
I returns a zero if the field is null.
I do not know how your company does time accounting but many use a charge
code for their projects/activities, another for vaction, sick, and a separate
field for overtime or donated time. They also have a field for speciality
pay such as hazardous duty, shift differential, Quality Checker.
The entry would look like this --
WeekEnding EmpID ChargeCode Hours TypeHRS SpecPay
This data is collected by payroll/finance and downloaded for managers to do
analysis on projects, labor trends, etc.
Melinda said:
I thought about this a bit more overnight, I see what you are saying and I am
collecting each instance of overtime in the hours table, but how would I show
the employees who have a year to date total overtime of "0" in that query.
I need to have a overtime line for each employee whether they have hours or
not.
Thanks
:
Suggest you not do it. Storing calculated data is bad as the data is always
changing. What if someone updated it and then another person updates it
again?
Best to have a table collecting each instance of overtime and then sum it in
a query when you need the information and therefore it will always be current.
:
I am writing an overtime program for overtime usage. I have a table for
employees and another table for overtime hours. I want to update the
employee table to always have the current total overtime hours that the
employee has year to date. The hours being entered into the overtime hour
form is added into the hours table. Any suggestions?