Results 1 to 2 of 2
  1. #1
    mrmmickle1's Avatar
    mrmmickle1 is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2014
    Location
    North Carolina
    Posts
    78

    Access Form Conditional Formatting Expression

    I currently have a form called frmReviewData.



    The form has data from a table called tblCDT. I have a field in this table called flag that is a "Yes/No" data type. I am trying to use the form conditional formatting to highlight the field on my form red with white font if the FLAG Field = TRUE....


    So for the field RPT_NAME I want in the form for it to turn red with white text if [tblCDT]![Flag] = TRUE ..... however I can't seem to get this to work. I have tried using these expressions:



    [tblCDT]![Flag] = TRUE
    [tblCDT]![Flag] = "TRUE"
    [tblCDT]![Flag] = 'TRUE'
    [tblCDT]![Flag] = -1

    **Note: If i conditionally format the field FLAG Field Value equal to True it works fine.... just no luck on other fields

    What am I doing incorrectly? Any help would be much appreciated. Ideally, I would like to do this for multiple fields so the whole record is red with white font but, I can't even get it to work with one record

  2. #2
    mrmmickle1's Avatar
    mrmmickle1 is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2014
    Location
    North Carolina
    Posts
    78
    Apparently I forgot to change the font and background formatting so the conditional formatting appeared not to be working...... duh!!!


    End Expression is [Flag]=True

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

Similar Threads

  1. Replies: 18
    Last Post: 04-11-2016, 03:23 PM
  2. Conditional Formatting in a Access Form
    By adillpickle in forum Forms
    Replies: 3
    Last Post: 01-26-2016, 10:55 AM
  3. Replies: 4
    Last Post: 09-25-2015, 07:28 AM
  4. Replies: 5
    Last Post: 03-14-2012, 08:32 PM
  5. conditional formatting expression
    By kroenc17 in forum Programming
    Replies: 2
    Last Post: 10-22-2010, 09:53 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