Results 1 to 8 of 8
  1. #1
    emcloa is offline Novice
    Windows Vista Access 2007
    Join Date
    Oct 2012
    Posts
    4

    colours in query

    We have an output of query

    lengte MAKTX: Len([maktx]) But waht we also want to have is that when the LEN > 40 that it is displayed in an other colour !
    But i have tried several things... ... i cannot find it.
    In excel this is very simple but is this possible in access ????

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    Conditional formatting is available in Access but only in Forms and Reports. It is not something you can do in a query. In a report or form, right click on the control and select conditional formatting.

  3. #3
    emcloa is offline Novice
    Windows Vista Access 2007
    Join Date
    Oct 2012
    Posts
    4

    colours in query

    I have tried to make it with conditioanal formatmatting

    But can you help me wiht the codeing? (in the form)
    I tried with Expression is : Len([PRDHA]=15) >> and selecting green colour.... but i think i have to use a little bit more a more sophisticated expression?

  4. #4
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    Not sure about this but try:
    Len(Forms![YourFormName].[PRDHA]=15)
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  5. #5
    emcloa is offline Novice
    Windows Vista Access 2007
    Join Date
    Oct 2012
    Posts
    4
    hmmmm can you try? here it doesnot workl... and i think it should be so simple!

  6. #6
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    Can you show uss the expression you are using.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  7. #7
    emcloa is offline Novice
    Windows Vista Access 2007
    Join Date
    Oct 2012
    Posts
    4

    colours in forms conditional formatting

    I have attached.

    hope this explains.
    Driek
    Attached Files Attached Files

  8. #8
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    I'm guessing that the file you attached is a screenshot and that you are using A2007 or A2010. I don't use either of those versions so I can't be sure but I think you are using: Len([PRDHA]=15)

    I think you should be using: Len(Forms![YourFormName].[PRDHA]=15)
    Change YourFormName with the name of your form.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. Reports and Colours
    By BarbT in forum Access
    Replies: 2
    Last Post: 10-08-2011, 07:47 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