Results 1 to 5 of 5
  1. #1
    Diji Ninja is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2016
    Location
    SoCal
    Posts
    3

    Need assistance with access dashboard


    Hello AccessForums,
    I am building a simple MS access database with a dashboard and need some help. I am submitting data into a table using the click event macro in the button. Based on the criteria from either the entry form or the table it is recorded to, I would like the background color of a cell on a form (dashboard) to change red or green. I need to either utilize built in access features or write some vba to accomplish this but I am stuck at where or how I should code this action.




    Here is ideally what I need to happen:

    User enters info into form and submit entry form, this is working
    Click image for larger version. 

Name:	FrmWorkOrder.JPG 
Views:	25 
Size:	51.4 KB 
ID:	26620






    Data is recorded into a table, this is working:
    Click image for larger version. 

Name:	tblWorkOrder.JPG 
Views:	25 
Size:	66.0 KB 
ID:	26621




    the function that I need help to complete is to change the background color of these cells based on the option selected in the drop down box "work in progress" on the entry form ( or by other method)

    Click image for larger version. 

Name:	frmDashboard.JPG 
Views:	25 
Size:	78.3 KB 
ID:	26622




    Any suggestions appreciated!

    Thanks
    Last edited by pbaldy; 12-03-2016 at 07:24 PM. Reason: delete dup info

  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,521
    It's certainly doable. What determines when to apply the format? If those are textboxes, Conditional Formatting (on the ribbon) is an option. VBA is another, if the form isn't in continuous or datasheet view.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Diji Ninja is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2016
    Location
    SoCal
    Posts
    3
    Hello Paul,

    I'm using the dropdown box to determine if the box is red or green. For example, the user would select "test stand 1 up" and the box would be green or " test stand 1 idle" and the box would be red. the boxes are actually just rectangular frames and do not allow conditional formatting but I could use any box or shape that would work. The conditional formatting seems to rely on a numeric value, perhaps I could link it to the primary key in the table where the drop down list was derived from. The dashboard is not continuous at this point and will just display a green or red background and some basic info and refreshed every 30 seconds. I'm open to suggestions if other layout or logic would accomplish this better. Thanks for the feedback.



    Click image for larger version. 

Name:	Input form dropdown.jpg 
Views:	24 
Size:	120.4 KB 
ID:	26623

    Click image for larger version. 

Name:	cap2.jpg 
Views:	23 
Size:	182.8 KB 
ID:	26624

    Click image for larger version. 

Name:	cap3.JPG 
Views:	23 
Size:	164.1 KB 
ID:	26625
    Last edited by Diji Ninja; 12-04-2016 at 10:56 AM.

  4. #4
    Micron is online now Virtually Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,803
    I think I'd do away with the rectangles and make them into large text boxes. Then "Test Stand 1 (H)" can come from a table or query instead of being a label, which is what I think that is. By doing so, you can not only bind the text box so that the "label" will automatically change if you change the wording in the table, you can apply conditional formatting to these large textboxes based on the values held in the smaller ones you place on top of them (where you show =Forms!Frm...). Conditional formatting on each stand textbox would be easier than writing a long Select Case block or a bunch of IF statements to color the rectangles according to the combo choice. All you need to do is format the small textboxes according to your desired look, making borders and background transparent or whatever.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #5
    Diji Ninja is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2016
    Location
    SoCal
    Posts
    3
    I've been researching and I think the boxes are gonna become textboxes and I'm going to try conditional formatting and/or expression builder on the dashboard objects. Tomorrow I will give it a go and report back. Thanks for the suggestions gentlemen.

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

Similar Threads

  1. Access SQL Assistance
    By bak in forum Access
    Replies: 1
    Last Post: 07-28-2016, 10:19 PM
  2. Replies: 9
    Last Post: 08-17-2015, 09:39 AM
  3. Access Assistance
    By otis in forum Access
    Replies: 1
    Last Post: 03-05-2015, 01:03 PM
  4. need assistance on image size in access
    By paulkimball in forum Reports
    Replies: 0
    Last Post: 05-16-2012, 10:01 PM
  5. New to Access - Looking for some basic assistance
    By Dave_EntryIT in forum Access
    Replies: 2
    Last Post: 03-27-2011, 11:25 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