Results 1 to 3 of 3
  1. #1
    tagteam is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    501

    conditinal formatting multiple not and single and

    I am looking for a way to use conditional formatting that will allow me to use conditional formatting but not on select criteria.

    I have tried

    [BillingInvoicingParty]<>"BNSF" OR [BillingInvoicingParty]<>"CSXT" OR [BillingInvoicingParty]<>"NS" Or [BillingInvoicingParty]<>"UP" And [SumofNetCharge]>15000 And I set that to make them Red.

    What that should is highlight any line where the BillingInvoicingParty is not BNSF or CSXT or UP or UP but is still over 15,000

    instead it makes them all highlighted

  2. #2
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Because you are checking for the value NOT to be one of those options, you need to switch all of those ORs to ANDs, i.e.
    Code:
    [BillingInvoicingParty]<>"BNSF" AND [BillingInvoicingParty]<>"CSXT" AND [BillingInvoicingParty]<>"NS" AND [BillingInvoicingParty]<>"UP" And [SumofNetCharge]>15000

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Grammatically, if it helps to understand the logic, the correct structure is:

    not BNSF nor CSXT nor NS nor UP

    in other words,

    not BNSF and not CSXT and not NS and not UP
    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: 22
    Last Post: 12-29-2015, 10:41 PM
  2. Replies: 5
    Last Post: 09-29-2015, 11:08 AM
  3. Help needed !! multiple f-e and single b-e
    By crash009 in forum Access
    Replies: 10
    Last Post: 05-22-2014, 02:55 PM
  4. Replies: 3
    Last Post: 02-04-2014, 04:33 PM
  5. Multiple Reports to Single PDF
    By hkimpact in forum Access
    Replies: 1
    Last Post: 06-11-2012, 03:17 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