Results 1 to 7 of 7
  1. #1
    Aboss is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Jun 2020
    Posts
    5

    Talking Access

    Hello,


    I have state which gives results in figures. I would like to know how to add these results obtained
    Thank you


    iif(Mat1]=1; 2;5) 5
    iif(Mat1]=1; 2;10) 10
    iif(Mat1]=1; 2;13) 2
    iif(Mat1]=1; 2;7) 7

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Your example makes no sense. The IIF is the Same.
    but you can put values in a table with their conversion value ,
    then just join the table with the main data table to convert the #.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    You have 4 fields named Mat1, Mat2, Mat3, Mat4? Each expression should reference a different field?

    That is not a normalized data structure. If you want to add fields then do arithmetic. Field1 + Field2 + Field3 + Field4. Or each of the fields could be expressions you show.
    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
    Aboss is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Jun 2020
    Posts
    5
    I have IFF expressions that give results. I want to know how to add up these results.

  5. #5
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,740
    I would like to know how to add these results obtained
    I want to know how to add up these results.
    Just repeating your requirement doesn't help at all.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Already told you in post 3 - do arithmetic.
    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.

  7. #7
    Aboss is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Jun 2020
    Posts
    5
    Quote Originally Posted by June7 View Post
    You have 4 fields named Mat1, Mat2, Mat3, Mat4? Each expression should reference a different field?

    That is not a normalized data structure. If you want to add fields then do arithmetic. Field1 + Field2 + Field3 + Field4. Or each of the fields could be expressions you show.

    Ok thanks it works

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

Tags for this Thread

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