Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a monthly report of recorded hours.

Status
Not open for further replies.

fhvac

Programmer
Jan 11, 2004
56
US
Hello all, I am creating a filemaker db for my volunteer ambulance corp. One of the uses I intend for this is to record the amount of hours each member volunteers per day/shift.

What is important to me is to be able to print out a monthly report.

This report would show each memebr with the amount of hours they have volunteered for the month.


When a crew starts their tour, they would create a new record in the Main Log table which essenitally contains the ID and date.

For a crew member to gain credit for the tour they would then add themselves to the portal that is on the Main Log. The Crew Log table essentially consists of: Main Log ID, Member ID(see below), Crew Log ID, Start time, and End Time.

Every member is listed under a table called members, which essentialy includes their unique ID and name.





Any help would be greatly appreciated.
If you would like a copy of the db I am working on for ease of understanding my database structure please PM me.

Thanks!
 
You could make a sort of record time table.

At recordcreation, the user enters name, date autoenter and time autoenter.
The -clock will start running untill the user goes back to that record and push the 'endTime' button, which is only visible if the startbutton was active.

You don't need calc fields, all the mechanic can be in scripts.

Basicfields you need:
beginDate - date
beginTime - time
elapsedTime - time
pausedTime - time
userName - text
totalHours - summary=Total of elapsedTime

The calculations in the scripts, something along these lines:
StartTimer, a set ofSetField steps to set the fields to Current Date and Current Time
Check ElapsedTime, with a setField step like: (((Status(CurrentDate) - Begin Date) * 86400) + Status(CurrentTime) - Begin Time) + Paused Time
Pause/Stop/Continue, where you toggle between stop and continue
Report, redirect to the reportlayout with 2 parts,subSummary by userName(leading) with userName and totalHours
and
subsummary by userName (trailing) with date and elapsedTime.

Very dirty and short, but it could put you on your way.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top