Hi
I am developing an On Leave app. in which trying to calculate employees days on leave.
I have created a Form consists of this fields (from a table):
(1). OnLeaveID (used as for the Relationship - Auto)
(2). StartDate (the starting on leave date - short date)
(3). EndDate (the last date on leave - short date)
(4). NumPublicDay (the number of public holidays)
(5). CalcDaysOnLeave (calculate days on leave applied)
(6). DaysOnleave (this field is used to save result/value no. (5) as its field data)
(7). BFOnLeave (no. of days brought forward from last year)
(8). EligOnLeave (no. of days eligible for that particular year)
(9). AvaiOnLeave (balance on leave available)
The idea is like this (as what I want, all must be auto-calc. in same single form):
i.(2),(3),(4),( 7),(8) <<< manual data entry
ii.(5) = (3) - (2) - (4) <<< returns a value but I want this result to be kept in field (6) for next reference; report etc. I put something like this in the CalcDaysOnLeave 's Control Source :
= [EndDate]-[StartDate]-[NumPublicDay]
iii. Then I want to use the (6) data for my 2nd calculation :
(9) = (7) + (8) - (6)
I think I didn't face any problem with the rest, except on how to keep a value (6) into the field data in the table.
Could you please assist me on this? I am really grateful with your solution. Thanks.
I am developing an On Leave app. in which trying to calculate employees days on leave.
I have created a Form consists of this fields (from a table):
(1). OnLeaveID (used as for the Relationship - Auto)
(2). StartDate (the starting on leave date - short date)
(3). EndDate (the last date on leave - short date)
(4). NumPublicDay (the number of public holidays)
(5). CalcDaysOnLeave (calculate days on leave applied)
(6). DaysOnleave (this field is used to save result/value no. (5) as its field data)
(7). BFOnLeave (no. of days brought forward from last year)
(8). EligOnLeave (no. of days eligible for that particular year)
(9). AvaiOnLeave (balance on leave available)
The idea is like this (as what I want, all must be auto-calc. in same single form):
i.(2),(3),(4),( 7),(8) <<< manual data entry
ii.(5) = (3) - (2) - (4) <<< returns a value but I want this result to be kept in field (6) for next reference; report etc. I put something like this in the CalcDaysOnLeave 's Control Source :
= [EndDate]-[StartDate]-[NumPublicDay]
iii. Then I want to use the (6) data for my 2nd calculation :
(9) = (7) + (8) - (6)
I think I didn't face any problem with the rest, except on how to keep a value (6) into the field data in the table.
Could you please assist me on this? I am really grateful with your solution. Thanks.
Comment