S
Syspol Consultants
Can anyone help me?
I have one parent table StaffID primary key that holds a Balance Hours.
I need to apply this balance apportioning it to a child table StaffID/Date
as the primary key with a field of PLanned hours and Used Hours.
for example StaffID 01 Balance Hours 19
need to apportion until Balance is used as such
StaffID 01 Date 1/10 Planned Hours 7 then update Used Hours to 7
StaffID 01 Date 2/10 Planned Hours 7 then update Used Hours to 7
StaffID 01 Date 3/10 Planned Hours 7 then update Used Hours to 5
Hope this makes sense.
Cheers
I have one parent table StaffID primary key that holds a Balance Hours.
I need to apply this balance apportioning it to a child table StaffID/Date
as the primary key with a field of PLanned hours and Used Hours.
for example StaffID 01 Balance Hours 19
need to apportion until Balance is used as such
StaffID 01 Date 1/10 Planned Hours 7 then update Used Hours to 7
StaffID 01 Date 2/10 Planned Hours 7 then update Used Hours to 7
StaffID 01 Date 3/10 Planned Hours 7 then update Used Hours to 5
Hope this makes sense.
Cheers