Results 1 to 7 of 7
  1. #1
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    839

    Conditional Formatting

    How can I have the Conditional formatting combined for the following?



    "AO Deferred", "CCB Deferred"' "GO Deferred"

    I want them all to be bold Red lettering. I have made three different rules for each to reflect the formatting (Bold Red Letters). Is there a way to combine these into one rule?

    I have tried: Expression is equal to "AO Deferred" Or "CCB Deferred" Or "GO Deferred" It does not work.

    Is there a way to put a text wildcard symbol in it? Like: Expression is equal to * & "Deferred" Note I have tried this but it doesn't work.

    I do not want to have 3 different rules for each status. Suggestions?

    Thanks

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Well, that is not a complete expression for rule.

    [fieldname] = "AO Deferred" Or [fieldname] = "CCB Deferred" Or [fieldname] = "GO Deferred"

    [fieldname] LIKE "*Deferred"
    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.

  3. #3
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    839
    June7,
    I tried the following:
    Status LIKE "*Approved" in the Conditionl Formatting. The is the Conditional Formatting when you select the Forms control and right click, then select "Conditional Formatting. I see where you are going with this, but I am thinking this is for VBA?

    I tried "*Approved" also = nogo

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    My suggestion was for Conditional Formatting dialog. I tested both OR operator and LIKE *.

    Note [] for field name.
    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.

  5. #5
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    839
    June7,
    I tried it both ways in two different styles. The [Status] field is a switch code in the query. (Status: Switch(GO..........)

    Below is the outcome:

    Click image for larger version. 

Name:	Example.png 
Views:	8 
Size:	43.8 KB 
ID:	20204

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Need to use Expression Is.
    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
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    839
    Duh. I should have known better. It all works now! Thanks June7!!

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

Similar Threads

  1. Using Conditional Formatting
    By radguy in forum Reports
    Replies: 14
    Last Post: 08-11-2014, 10:52 AM
  2. Conditional formatting
    By keiath in forum Forms
    Replies: 28
    Last Post: 01-27-2014, 08:36 AM
  3. Replies: 6
    Last Post: 05-26-2013, 09:10 PM
  4. Conditional Formatting
    By Desstro in forum Programming
    Replies: 3
    Last Post: 12-01-2010, 09:52 PM
  5. Conditional Formatting
    By pkstormy in forum Code Repository
    Replies: 0
    Last Post: 08-30-2010, 09:31 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