Search results

  1. J

    How to create a query to calculate leave balance based on type

    Let me ponder on this... Thanks
  2. J

    How to create a query to calculate leave balance based on type

    Could you please explain on the expression that you used... NZ((SELECT SUM(LF.Total_Days) FROM [Leave Form] as LF WHERE LF.Staff_ID = PLD.Staff_ID AND LF.Leave_Type IN ('AL', 'EL')),0) as AnnualLeave, I'm a bit confuse on the usage of "nz", "select sum" and "in"
  3. J

    How to create a query to calculate leave balance based on type

    Thanks, you really help me out big time, by the way is it ok if I PMed you for future reference or any questions regarding Access in particular?
  4. J

    How to create a query to calculate leave balance based on type

    I just add [leave_balance] in front and everything seems right [leave_balance] + [entitlement_leave] - NZ((SELECT QLF.DaysTaken FROM qryLeaveForm as QLF WHERE QLF.Staff_ID = PLD.Staff_ID AND QLF.leaveType = 'AL'),0) as AnnualLeave, Will post result after more testing done
  5. J

    How to create a query to calculate leave balance based on type

    Those who got "leave balance" from last year will get their total leave wrong, example a person with a balance of 2 days will get their answer wrong by 2. last year balance = 2 days this year leave entitlement = 18 days total accumulate leave = 20 days al & el taken so far = 10 days it should...
  6. J

    How to create a query to calculate leave balance based on type

    Thanks, I give it a try...
  7. J

    How to create a query to calculate leave balance based on type

    There is 3 types of leave as listed below where Emergency leave (Non Approved Leave Application) is under the same category with Annual leave (Approved Leave) and Medical & Compassionate stands on its own. No Leave Type 1 Annual/ Emergency Leave 2 Medical Leave...
  8. J

    How to create a query to calculate leave balance based on type

    Jal, Ok, AL stands for Annual Leave, MC for Medical Leave & Emergency leave for EL. AL & EL are under the same category, meaning that taking EL will decrease total leave balance.
  9. J

    How to create a query to calculate leave balance based on type

    Could someone please help me to solve this query? How can I create a query that’s enabled me to check leave balance of each/ all type of leave al & el (same leave category), mc & cl at the end of every week/ month based on staff id? The Excel file is currently used for entering leave application...
Back
Top Bottom