Results 1 to 4 of 4
  1. #1
    ramirezx@ddmfg.com is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    40

    Access Query Compare three field in same record

    Hi,



    I'm trying to create a query that has part # field and three columns with values. I want to create a fourth column that will say match or no match, no match if all three columns do not equal the same.


    Part # Column_1_Total Column_2_Total Column_3_Total Match/No Match
    004 0 2450 0 No Match
    005 0 0 16 No Match
    010 9300 9300 9300 Match
    011 0 0 35 Match
    012 4870 4870 4870 Match

    I want a query that will check all three columns to make sure they all match?

    Thanks,
    Xavier

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    I'd probably adapt this to test for equality:

    https://support.microsoft.com/en-us/...elds-of-record

    But it may be simple enough to have something like:

    IIf(Column_1_Total = Column_2_Total AND Column_1_Total = Column_3_Total, "Match", "No Match")
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    ramirezx@ddmfg.com is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    40
    Awesome, that did the trick, thanks so much!

    Xavier

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 8
    Last Post: 06-18-2014, 02:51 PM
  2. Replies: 3
    Last Post: 11-23-2011, 12:25 AM
  3. Replies: 6
    Last Post: 07-23-2011, 12:35 PM
  4. Replies: 1
    Last Post: 02-03-2010, 09:17 PM
  5. Replies: 1
    Last Post: 02-26-2009, 11:31 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