Hi...can someone help me..currently im doing database for my office,its call leave database..i having a problems with the calculation..i dont know how to write a script..
Lets me explain more about the problems..
[FONT="]Every staff have their own entitlement leave for this year and carry forward balance from last year..i need to calculate a balance when staff took their leave.. but what i realy need is...the balance will reduce only when i select a certain leave type such as CR01,CR07..other than that it [/FONT][FONT="]doesn’t effect the balance.[/FONT][FONT="].how to i do the calculation in form with subform.
first i need to sum entitlement leave for this year and carry forward balance from last year then minus leave totals days.(please refer to my attached database and review my frm)
how do i write the script..please help me[/FONT]

Lets me explain more about the problems..
[FONT="]Every staff have their own entitlement leave for this year and carry forward balance from last year..i need to calculate a balance when staff took their leave.. but what i realy need is...the balance will reduce only when i select a certain leave type such as CR01,CR07..other than that it [/FONT][FONT="]doesn’t effect the balance.[/FONT][FONT="].how to i do the calculation in form with subform.
first i need to sum entitlement leave for this year and carry forward balance from last year then minus leave totals days.(please refer to my attached database and review my frm)
how do i write the script..please help me[/FONT]