Results 1 to 2 of 2
  1. #1
    matpaulin is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Location
    Atherstone, England
    Posts
    1

    How to work out commission rates

    Hi All

    I am currently learning access in conjunction with my job data. I carry out interviews and get different rates for the amount of interviews conducted.
    e.g. For interviews 1 to 10 I get AdFee1 for each interview and for interviews 11 -13 I get AdFee2 for 14 - 16 I get AdFee3 etc.

    I have the AdFee1,2 etc rates in a table called FeeRates. I can query and get the total interviews for each Job but how do I calculate the total earned based on the rate for each "band". I could do it with excel but am struggling to achieve this with Access. I am presuming Nested IIF statements but am cautious due to division by zero errors. I haven't progressed to VBA as yet so any help would be great.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Let x represent the total count of interviews, something like:

    IIf(x<11,AdFee1*x,IIf(x<14,AdFee1*10+AdFee2*(x-10),AdFee1*10+AdFee2*3+AdFee3*(x-13)))
    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. can't we just work together?
    By ldodge in forum Queries
    Replies: 4
    Last Post: 10-15-2011, 06:42 AM
  2. how does mdw work?
    By raffie77 in forum Security
    Replies: 2
    Last Post: 08-17-2011, 12:43 PM
  3. Is this possible on my work computer?
    By imakemedia in forum Database Design
    Replies: 3
    Last Post: 04-13-2011, 04:21 PM
  4. Record Set won't work
    By claven123 in forum Programming
    Replies: 14
    Last Post: 01-12-2011, 01:29 PM
  5. Can't get NZ Function to Work
    By Xiaoding in forum Queries
    Replies: 6
    Last Post: 04-14-2010, 09:54 AM

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