Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2002
    Location
    Arkansas
    Posts
    13

    Smile Unanswered: changing background color of a textbox in subform

    OK. I've slept since I did this last time.

    How do you change the background color of a given text box of a given record of a continueous subform based on the value of another field of the same record without changing the background for all the records.

    I want to change the background color of text box if a check box is true.
    As it is now, if any check box is true, all the records text box back ground color is changed??!!

    Thx

    Tag

  2. #2
    Join Date
    Aug 2002
    Location
    Arkansas
    Posts
    13
    It is amazing what two big cup of coffee will do.

    It is called conditional formating!!!

    See help for details.

    tag

  3. #3
    Join Date
    Aug 2002
    Location
    Stockholm, Sweden
    Posts
    1
    Do you know how to do if you want to have 5 different conditionals?
    It seems that there´s a limit?

  4. #4
    Join Date
    Aug 2002
    Location
    Arkansas
    Posts
    13
    There is a limit of 3 conditionals. If you need more, you could write code to change the property of the control.

    In the following example, if x=y then the text box backcolor is changed to yellow:

    IF X=Y THEN txtBox.BackColor = 65535


    Hope this helps.

    Tag

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •