Results 1 to 3 of 3
  1. #1
    flames8889 is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2010
    Posts
    1

    Comparing fields in Access

    Hello,

    In Excel, there is a logical function that compares two fields: =a1=b1. This returns a value of 'TRUE' or 'FALSE'. How does one do that same function in Access? I've tried using similar functions, using iif, everything I've tried either gives me an error message or returns a value of 0 (zero).

    Thanks in advance.

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    iif is prolly the best. what do you want? display booleans based on a statement?

  3. #3
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    iif(mytable.record1 = mytable.record2, "TRUE", "FALSE")

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

Similar Threads

  1. Replies: 0
    Last Post: 03-03-2010, 08:24 PM
  2. Comparing Dates And Matching Quantities
    By chrisleng in forum Programming
    Replies: 0
    Last Post: 02-23-2010, 10:50 AM
  3. Help On Comparing Quantity in Tables
    By rochy81 in forum Access
    Replies: 2
    Last Post: 05-29-2009, 10:20 AM
  4. Comparing Part Quantities According to Dates
    By rochy81 in forum Reports
    Replies: 6
    Last Post: 05-19-2009, 09:11 AM
  5. Comparing between fields
    By Dashin in forum Queries
    Replies: 0
    Last Post: 02-13-2009, 08:38 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