Results 1 to 2 of 2
  1. #1
    HT_Bob_Brick is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    May 2017
    Posts
    1

    Form Button Background Color Dependency

    I've setup a database for a group of people to track instrument state. Attributes of an instrument are things like: Defects present, date of service work, software version and Is_Operable.

    The Is_Operable field is a yes/no format in my instrument table.

    I have a master form that lists the 5 instruments by means of 5 buttons - each button titled the name of the instrument. When you click on an instrument button an instrument specific form opens displaying all the associated attributes with that specific instrument.

    Here is what I'd like to do:
    In the master form, I would like the background color of the instruments buttons to be either red or green depending on if the Is_Operable is set to either yes or no in the instrument table.

    Desired outcome:
    When the user looks at the main form they can see which instruments work (green buttons) and which ones do not (red buttons). They can click on any of the red or green buttons to get specifics.

    I think this is simple but after playing around with button event properties I've not been able to figure this out.

    If there are better ways to do this, I'm also open for suggestions.



    Thanks for the help.

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,928
    I'm assuming your form is continuous since it otherwise should not be an issue.

    buttons do not have conditional formatting so you cannot have variation of background colour in a continuous form as such but you can make the back transparent and have a textbox behind it where you can set conditional formatting

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

Similar Threads

  1. Background Color on Form
    By PATRICKPBME in forum Forms
    Replies: 2
    Last Post: 01-25-2017, 02:43 PM
  2. background page color in a form
    By vin1602 in forum Forms
    Replies: 2
    Last Post: 03-21-2015, 06:48 PM
  3. Replies: 4
    Last Post: 10-28-2014, 09:51 AM
  4. Replies: 4
    Last Post: 05-04-2014, 08:24 PM
  5. background color in a form
    By taggart in forum Forms
    Replies: 1
    Last Post: 05-07-2009, 10:37 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