Results 1 to 4 of 4
  1. #1
    HK123 is offline Novice
    Windows 11 Office 365
    Join Date
    Dec 2023
    Posts
    21

    Conditional Formatting Error on Form


    Hello,

    I am very new to Access so I am hoping I am missing something obvious here.

    I have created a form in my database to show a log of items sold and some other order details. I have used conditional formatting successfully to make each product change the text color in their row based on the text entered into the products column... except for ONE of the items..

    The product column (Product_Desc) is formatted with the conditional formatting tool like so:
    Format only cells where the:
    Field Value Is equal to: "Product Code - Product Name"

    all of the other columns I want to have the color effected on are set up like this:
    Format only cells where:
    Expression is [Product_Desc]= "Product Code - Product Name"

    All of the items have unique codes and names, each one is working to change the colors in the rows as I have planned but one. All of the codes and names are the same format, so there is nothing different about that one other than it is the last one I attempted to set up. I think it was the end of the day so I saved and closed out, and then went back the next day to add that one. I have tried numerous variations to get it to work but for some reason it will not change the color.

    Whenever I open the conditional formatting tool and look at the codes and rules it looks just like the others.

    Is there a limit to how much conditional formatting can go into a form? Is there another way I can look at these rules I have set up other than in the conditional formatting tool? If it is a bug of some sort, what would be the best way to fix it? I could try recreating the form but changing everything within the formatting tool takes awhile due to all the products and columns I am working on.

    Also.. is there an easier way to do conditional formatting in a form, like copying the rules from one row to the next?

    Thank you so much!!

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Can you post a copy of your database?
    ???What exactly does this mean?? Field Value Is equal to: "Product Code - Product Name"

    Can you give us sample values from your database/form?
    Richard Rost has a video on Conditional formatting.
    Last edited by orange; 02-28-2024 at 11:47 AM. Reason: video link

  3. #3
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    Try to loose the double-quotes:

    Field Value Is equal to: Product Code - Product Name

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  4. #4
    HK123 is offline Novice
    Windows 11 Office 365
    Join Date
    Dec 2023
    Posts
    21
    I solved the issue. There was extra text in the product code that was not showing on any of the forms due to column width. There was a large space and extra text at the end. I corrected this and the issue is resolved. It was just good old user error!

    Thank you all!!

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

Similar Threads

  1. Conditional Formatting On Sub Form
    By jo15765 in forum Forms
    Replies: 5
    Last Post: 07-15-2019, 06:16 AM
  2. Conditional Formatting on a form
    By AndyC121 in forum Forms
    Replies: 1
    Last Post: 03-23-2017, 09:13 AM
  3. Replies: 7
    Last Post: 10-01-2012, 07:59 AM
  4. Conditional formatting inside a form
    By DataRick in forum Programming
    Replies: 14
    Last Post: 02-12-2012, 06:23 PM
  5. Conditional formatting on form
    By ngruson in forum Forms
    Replies: 11
    Last Post: 09-17-2010, 12:15 PM

Tags for this Thread

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