Conditional formatting in a datasheet - >3 conditions

Posted on 2006-04-14
Last Modified: 2008-03-06
I've been using my app for several months, happily applying conditional formatting to a column in a datasheet: 3 conditions and a default (no format).

I now have a new condition. :(  I've been poking around looking for code to accomodate the additional condition, or more - for growth.  No luck so far.

Is it possible to work around the 3-condition limitation in Access?  Any examples?


Question by:markp99
    LVL 77

    Accepted Solution

    Hi markp99,
    No, its not possible in a continuous form or datasheet.

    LVL 44

    Expert Comment

    I'm told it will be included in A2009 when it is released in 2012;-)
    LVL 39

    Expert Comment

    Yes, it is. Take a look at:, Report Form Tricks, More Than 4 Conditional Formats

    Author Comment


    I took a look.  It's a bit kludgy for my applicaiton, and actually did not seem to work properly on my machine here at work.  

    Thanks for the link, there were a couple other interesting tid bits there.


    Author Comment

    Dang it!

    I'm more than slightly bummed I cannot provide the needed formatting to my users.  Now I need to think a bit harder to modify the use model and review/validation process in my app which was facilitated by conditional formatting.

    Oh well, time to do some 'splaining to my boss!
    LVL 77

    Expert Comment

    You cannot have more than 3(+default) conditions operating at any time.
    It is possible to programmatically change the 3 conditions as you move from record to record but there will still be only 3 current conditions and they will apply to all visible records.
    Therefore for a single-form view it is possible to create the illusion of more than 3 conditions by changing the rules as you move from record to record.
    But for a continuous form or a datasheet, whatever 3(or 4 with the default) rules are in force for the current record will be applied to all other visible records.



    Featured Post

    Gigs: Get Your Project Delivered by an Expert

    Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    C# primary key 9 46
    Order by 8 20
    Excel To Access Database Transfer 14 25
    Access Query concatenation 12 23
    This isn't a frequent question on EE. I must have seen it three or four times (among several thousand questions). However, I use this trick quite often, most frequently as a delayed Current event. A form does not expose it's calculation dependenc…
    Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
    In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now