Results 1 to 2 of 2
  1. #1
    evand is offline Novice
    Windows 10 Access 2007
    Join Date
    Jun 2016
    Posts
    4

    Using Yes/No data to fill a box with a color on a report

    This is a ludicrous question, and I know it. Is there a way when generating a report to have boxes fill in with color if a yes/no option is yes in the table?



    I am trying to make tags that show an employee's name and specific colors if they possess identified skills. What I REALLY want would be for the boxes to change size and auto-center depending on how many options are true so that they always take up the same amount of space. I can make this work as a one time thing in Publisher to get my tags, but I would really like to have updatable reports for it.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    The color part is easy, can be done with Conditional Formatting. The size part is probably doable, with VBA code in the format event of the report section containing the boxes. I suspect it will more tedious than difficult. You have to anticipate all the possibilities and account for them. I suppose you could also use hidden textboxes, and make the appropriate ones visible based on how many options are true.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 21
    Last Post: 02-16-2017, 03:14 PM
  2. Report data as a color-coded grid
    By dth122 in forum Reports
    Replies: 11
    Last Post: 12-21-2014, 01:31 PM
  3. datasheet fill color changes
    By trevor40 in forum Forms
    Replies: 2
    Last Post: 03-05-2014, 09:43 PM
  4. Replies: 3
    Last Post: 05-30-2013, 08:03 AM
  5. Replies: 1
    Last Post: 12-21-2011, 02:11 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