C
chopper57 via AccessMonster.com
I have the following problem with a database that I am working on, the
database is for daily reports and it tracks employee hours on the job site.
I have a subform for entering: Employee Name, Start Time, Finish Time, Breaks,
and an Unbound text to calc the time. I have the start, finish and break set
with default values so the calc time shows 10 Hrs. The calc works, the
problem is when you fisrt choose a name from a dropdown list the next empty
record in the calc field shows #Error. I can continue to add names and the
calc works in each record but the last empty record is always #Error. Now if
I forward the form to a new or previous record and return to the present
record the #Error is gone and shows 10. I think this problem is also showing
the #Error in my report when there's no work for a day with no names selected.
This is the formula in the unbound text in the Control Source on the subform .
=IIf([Finish]>[Start],([Finish]-[Start])*24,24-([Start]-[Finish])*24)-[Breaks]
database is for daily reports and it tracks employee hours on the job site.
I have a subform for entering: Employee Name, Start Time, Finish Time, Breaks,
and an Unbound text to calc the time. I have the start, finish and break set
with default values so the calc time shows 10 Hrs. The calc works, the
problem is when you fisrt choose a name from a dropdown list the next empty
record in the calc field shows #Error. I can continue to add names and the
calc works in each record but the last empty record is always #Error. Now if
I forward the form to a new or previous record and return to the present
record the #Error is gone and shows 10. I think this problem is also showing
the #Error in my report when there's no work for a day with no names selected.
This is the formula in the unbound text in the Control Source on the subform .
=IIf([Finish]>[Start],([Finish]-[Start])*24,24-([Start]-[Finish])*24)-[Breaks]