Results 1 to 4 of 4
  1. #1
    BatmanMR287 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jan 2014
    Posts
    69

    Conditional back color of box.

    I have a report that shows the answers to multiple choice questions from a survey. The answers in the database are 3,2,1. In the report I need to have the back shading color reflect the numeric answer. Green for 3, yellow for 2, and red for 1.Click image for larger version. 

Name:	If Help.PNG 
Views:	7 
Size:	13.5 KB 
ID:	21245Click image for larger version. 

Name:	If Help.PNG 
Views:	7 
Size:	13.5 KB 
ID:	21245
    I know it will be a nested If statement but not sure how to write it.
    Last edited by BatmanMR287; 07-12-2015 at 01:41 PM. Reason: Picture didn't insert on first try.

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,543
    Have you tried doing this without code and just using Conditional Formatting on the ribbon.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    BatmanMR287 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jan 2014
    Posts
    69
    That does work well, unfortunately I have to do it 42 times. Don't see a way to copy and paste.

  4. #4
    BatmanMR287 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jan 2014
    Posts
    69
    Ah Ha! They are sub reports so I can copy them and change the query. Great solution and looks good. Thank you Mr. Fitz.

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

Similar Threads

  1. Replies: 7
    Last Post: 03-28-2014, 05:44 PM
  2. Alternate Back Color Property
    By RayMilhon in forum Reports
    Replies: 5
    Last Post: 11-15-2012, 06:20 PM
  3. Form Back Color, screen only?
    By LostInAccess in forum Forms
    Replies: 2
    Last Post: 07-19-2012, 08:39 PM
  4. Report Back Color formatting
    By RayMilhon in forum Reports
    Replies: 5
    Last Post: 02-07-2012, 03:20 PM
  5. Back color update issue
    By GraemeG in forum Programming
    Replies: 3
    Last Post: 03-21-2011, 11:32 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