Results 1 to 2 of 2
  1. #1
    sodium is offline Novice
    Windows 10 Access 2007
    Join Date
    Jul 2019
    Posts
    1

    Calculation question


    Is it possible to use the iff function to choose different calculations depending on the selection in a certain column and return results in the new column,
    Table layout example

    Col 1 Drop down selection
    Col 2 Amount
    Col 3 Results of required calculation

    small example if Col = 1 then use calculation 100xCol2 if Col1 = 2 then use calculation 200xCol2 etc etc the calculations are more complex but for explanation purposes the above will do.

    Any help appreciated.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    It is possible. Use IIf or Switch or Choose.
    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. Grouping AVG, want to ignore calculation question.
    By McArthurGDM in forum Programming
    Replies: 5
    Last Post: 06-21-2015, 12:53 PM
  2. calculation hours Question...
    By ultra5219 in forum Access
    Replies: 3
    Last Post: 04-22-2013, 10:13 AM
  3. Calculation Field in table vs Query calculation
    By Leonidsg in forum Database Design
    Replies: 18
    Last Post: 02-28-2013, 09:38 PM
  4. Calculation and Autofill Question
    By SMC in forum Forms
    Replies: 4
    Last Post: 06-20-2012, 11:03 AM
  5. Question about creating a date calculation tool
    By bazillion in forum Programming
    Replies: 0
    Last Post: 01-25-2008, 12:08 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