Results 1 to 9 of 9

Deduct Percentage if Value In Between

Threaded View

  1. #1
    Registered User
    Join Date
    05-30-2012
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    6

    Deduct Percentage if Value In Between

    Hey guys,

    I need some help with this query, I'm not quite sure what would be the most efficient / easiest way of doing so.

    I have the following query:
    2w32syt.png
    \1
    hv2mx4.png
    \1

    Okay so what I want to be able to do if MINUS a certain percentage from GrossPay if the GrossPay is in between 2 certain values.

    For example, if GrossPay were inbetween $400 and $500 (including ($400 and $500) deduct 10% from the GrossPay.
    I would like to make a table of values in between and percentages.

    Eg values inbetween:
    2iurkg1.png
    \1

    How could I create another table, so that for example when I wanted to change the deduction rate of $400 to $501 I could do so just by changing a eg a value in a Field in a table, instead of changing all this code in a query IIf statement.

    Or will I just have to hard code this as an IIf statement in a query, and whenever I want to change the percentage deduction of a certain value I will just have to edit this code. I am really hoping that I could avoid this, as I prefer the table approach which would allow me to change percentages on the fly.

    Thanks
    Last edited by TehNoob2010; 08-14-2012 at 07:52 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1