Results 1 to 3 of 3
  1. #1
    Tuckejam is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Jan 2020
    Posts
    168

    Conditional Formatting to match Alternate Back Color

    Ok the problem originated in query with calculated fields that needed Nz to work.

    i.e. PastDue: Nz([DuesOwed])-Nz([DuesPaid])

    but it appears that the Nz Function doesn't just calculate null as 0, it puts a zero in the field. and this makes the report look a little busy and unsightly.

    I went to conditional formatting to format all 0 text as white font, but the report has the two tone alternate back color to help your eyes track the data.

    is there a way to conditional format for the two tone, or have the field formatted to not show zero value, or some other work around.

    Thanks for any thoughts or help

    Click image for larger version. 

Name:	Capture.PNG 
Views:	9 
Size:	107.7 KB 
ID:	47000

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,861
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,398
    use the format property for the control. Numbers have 4 states - positive, negative, zero and null separated by a semi colon. So you might have

    $#,##0.00;[Red]$#,##0.00;""

    or perhaps just

    ;;""

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

Similar Threads

  1. Conditional back color of box.
    By BatmanMR287 in forum Reports
    Replies: 3
    Last Post: 07-12-2015, 02:39 PM
  2. Replies: 7
    Last Post: 03-28-2014, 05:44 PM
  3. alternate back color not working
    By dbaldwin117 in forum Reports
    Replies: 3
    Last Post: 02-25-2013, 01:33 PM
  4. Alternate Back Color Property
    By RayMilhon in forum Reports
    Replies: 5
    Last Post: 11-15-2012, 06:20 PM
  5. Alternate Back Color not working properly
    By kolarbr in forum Access
    Replies: 7
    Last Post: 08-30-2011, 10:16 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