Results 1 to 7 of 7
  1. #1
    hatmal is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2014
    Posts
    13

    cumulative Percentage equation

    i had two field CummulativeLate (min): Val(Nz(fnCummulativeLate([id],[uotono]),0))


    and

    cummulativeealy(min): Val(Nz(fnCummulativeealy([id],[uotono]),0))



    and this fields as you know are cumulative per employee

    i need new filed with name percentage deducted

    this field with formula as attached excel


    file attached again
    Attached Files Attached Files
    Last edited by hatmal; 08-14-2019 at 07:27 AM.

  2. #2
    hatmal is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2014
    Posts
    13



    PLEASE HELP

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Had to remove all the (Arabic?) captions from tables so i could understand tables and queries. I never set captions in tables.

    Name and Month are reserved words - should not use reserved words as names for anything.

    Your calculation requirements are not clear to me. Why does 8 min late and 7 min early result in 75% deduction?

    Why do you add late and early minutes?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Also be aware of:

    "Time" is also a reserved word.

    Code module does not have "Option Explicit" at the top.

    In "Function RcNumQ1", variable "RcNumQ" is not declared.

  5. #5
    hatmal is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2014
    Posts
    13
    new file attached with more Explain in excel sheet to


    please help
    Attached Files Attached Files

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    hatmal,

    A few suggestions:
    -write a description/explanation of the issue/calculation with example in your native language; then use Google translate to translate to English; then post the English description (Google translate is more than adequate for communication)
    -every table should have a primary key
    -every module should have Option Explicit at the start of the module.

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Starting to get a glimmer of what you are wanting.

    Still confused by the Out penalty. Why would a later departure result in a deduction?

    Over what date range should percentage be aggregated - a week, 2 weeks, a month, a pay period?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Help with Sum equation in forms
    By Buckles in forum Forms
    Replies: 10
    Last Post: 07-05-2015, 10:45 AM
  2. Equation help
    By Thompyt in forum Programming
    Replies: 7
    Last Post: 05-15-2015, 05:31 PM
  3. Making an equation
    By joce in forum Access
    Replies: 1
    Last Post: 10-27-2011, 09:56 AM
  4. Cumulative Percentage and dsum
    By treyxman in forum Queries
    Replies: 1
    Last Post: 08-11-2011, 08:31 AM
  5. Another equation almost done now
    By stryder09 in forum Access
    Replies: 4
    Last Post: 02-18-2011, 12:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums