Results 1 to 3 of 3
  1. #1
    MarkV is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    27

    Text Box Change Color on Calculation

    Hello,
    I wanted to have a text box at top of form and put a value in it that says 50-100.
    I want to make another text box that has the user enter a value.
    If they enter a value like 75 it is in the middle so it stays white. If the value is in the lower third of that value (50-100) change color to Pink. If value is in Higher third of value change to Yellow. If out of range below the (50) value change to Green. If out of value Higher than (100) change to Blue.

    I need white for somewhere in middle of range. Something in lower third. Something for out of range lower than value, and same for Higher. A color for upper third value and a color for Out of range Higher that top value (100)

    If someone can help someway thanks. If you have a different idea please help.

    Thank you so much
    Im new and building my own and soing good so far.

    Just need to enter specification form. and a result subform with colors people enter



    Best
    Mark

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    a field that would hold: '50-100' can only be a text field on which you cannot apply math. So you need a field with 50 and a field with 100 that are number field types....whether or not they are seen by the user is up to you.....

    once you have that then experiment with Conditional Format feature for the field you seek - it might be a little tricky to write out the expression....but I think it can be done

    modifying the font or background color property via vba is an alternative that will definitely work but I would try the Conditional Format approach first....

  3. #3
    MarkV is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    27
    Thank You so much. I will give it a try right now.

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

Similar Threads

  1. Text box change color
    By Ray67 in forum Forms
    Replies: 14
    Last Post: 11-19-2012, 04:06 PM
  2. Change color on text using column value?
    By PoorCadaver in forum Programming
    Replies: 5
    Last Post: 03-02-2012, 09:52 AM
  3. Replies: 1
    Last Post: 12-14-2010, 10:03 PM
  4. Using an event to change color of text.
    By michaeljohnh in forum Programming
    Replies: 3
    Last Post: 08-30-2010, 12:30 PM
  5. Change the text box color on form load
    By mikec in forum Programming
    Replies: 2
    Last Post: 03-01-2010, 11:47 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