Results 1 to 2 of 2
  1. #1
    chiefsguy12 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2020
    Posts
    1

    Expression for matching a column

    Hello,



    I am trying to find a formula that will do two things at once. I have a column that says Match or No Match. I need my expression to work like this: if it is a Match, I want the expression to return a null value, if it is No Match, I would like it to then give me the difference between the 2 columns the "Match or No Match" gets its data from. If you guys have any insight, I would greatly appreciate hearing it.

    Thank you for your help

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Sounds like a simple IIf()

    IIf([fieldname]="Match", Null, [field1]-[field2])
    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. Replies: 6
    Last Post: 01-03-2021, 05:06 AM
  2. Replies: 7
    Last Post: 02-14-2017, 06:38 PM
  3. Replies: 6
    Last Post: 12-15-2014, 07:53 PM
  4. Replies: 8
    Last Post: 07-10-2014, 09:44 AM
  5. Replies: 1
    Last Post: 09-27-2011, 10:45 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