Answered
Performing Calculations using Record Count
I am working on a form that calculates an employees vacation
time. THe employee starts with a static balance, say 120. The
employee can then enter their vacation time as they take it. They
can only enter it in increments of either 8 hours or 4 hours, so
each record in the database will reflect either 8 or 4 hours. I
want to be able to display a current balance for the employee. So
if the employee logs in and takes a week off, they will have to
enter 5 records with 8 hours each. How do I calculate this to get
the desired current balance of 80? I am not very fluent with
calculations in CF, but think it must involve the record set. THis
is probably very easy, but I am stumped.
Any help would be great! Also if I didnt explain this correctly, let me know and I will try to offer more details.
Any help would be great! Also if I didnt explain this correctly, let me know and I will try to offer more details.
