Results 1 to 5 of 5
  1. #1
    aonsu209 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2014
    Location
    Rotterdam
    Posts
    24

    Conditional formatting and percentage in access form?

    Dear all,

    I have really annoying issue with condition formatting. Im trying to have value green below 100% and red above, but check below.
    Click image for larger version. 

Name:	access.jpg 
Views:	6 
Size:	144.1 KB 
ID:	22155



    I try only 100 as number, formatting 100 to % and still nothing, I'm sure will be something simple, but what?
    Thank you in advance.
    Tommy

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    What is the formula behind Used2?
    Note that if it is returning a numeric value, then you do not want to use the FORMAT function in your Conditional Formatting formula, as FORMAT returns a Text value, not a Numeric one.

    You would just want to use:
    [Used2] < 100%
    or
    [Used2] < 1

  3. #3
    aonsu209 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2014
    Location
    Rotterdam
    Posts
    24
    Thanks for the reply, I thought same way and I tried with 1 or 100 but same, it is not working.
    Click image for larger version. 

Name:	Access 3.jpg 
Views:	6 
Size:	162.9 KB 
ID:	22157
    The formula behind is:
    =IIf([TotalPeriod2]=Null And [Amount_Request_Period_2]=Null,Null,IIf([Amount_Request_Period_2]=0,0,Format(([TotalPeriod2]/[Amount_Request_Period_2]),"0%")))
    So it is returning to percentage.
    Attached Thumbnails Attached Thumbnails Access 2.jpg  

  4. #4
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    =IIf([TotalPeriod2]=Null And [Amount_Request_Period_2]=Null,Null,IIf([Amount_Request_Period_2]=0,0,Format(([TotalPeriod2]/[Amount_Request_Period_2]),"0%")))
    So it is returning to percentage.
    Same issue as I mentioned with the Conditional Formatting rule. Do NOT use the FORMAT function, it returns text and NOT a numeric value.
    Remove that so you are returning a numeric value.
    You can change the Format property of the Text Box to return a percentage format (don't do it in the formula).

  5. #5
    aonsu209 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2014
    Location
    Rotterdam
    Posts
    24
    Thank you!

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

Similar Threads

  1. Access Reports - Conditional Formatting
    By harpreett.singhh@gmail.co in forum Access
    Replies: 3
    Last Post: 08-07-2014, 02:38 PM
  2. Replies: 3
    Last Post: 11-04-2013, 07:40 PM
  3. Conditional Formatting in Access
    By Triland in forum Access
    Replies: 29
    Last Post: 01-18-2013, 01:00 PM
  4. Access Conditional formatting
    By mailboy in forum Access
    Replies: 1
    Last Post: 12-17-2011, 01:34 AM
  5. Conditional formatting on form
    By ngruson in forum Forms
    Replies: 11
    Last Post: 09-17-2010, 12:15 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