Ian Warren
New member
- Local time
- Today, 14:16
- Joined
- Apr 11, 2008
- Messages
- 5
Hi Guys,
I am trying to use conditional formatting on a textbox that I have turned into a button. I have 3 fields in the background query which relate to the conditional formatting. I want the button (textbox) to be grey if none of them are null, amber if any one or more are null and green if they are all null.
I have tried using conditional formatting with:
IsNull ([Field1]) OR IsNull ([Field2]) OR IsNull ([Field3])
IsNull ([Field1]) AND IsNull ([Field2]) AND IsNull ([Field3])
I have also tried:
If IsNull(Previous_Employer) Then btn_UpdatePrevious2.BackColor = 52479
and that doesn't even work in the Form Activate event and even for 1 field that doesn't work.
Is this possible and where can I go to find out how to do it? I am happy to read up on it, that way I will learn what I'm doing for next time.
Thanks for your help.
I am trying to use conditional formatting on a textbox that I have turned into a button. I have 3 fields in the background query which relate to the conditional formatting. I want the button (textbox) to be grey if none of them are null, amber if any one or more are null and green if they are all null.
I have tried using conditional formatting with:
IsNull ([Field1]) OR IsNull ([Field2]) OR IsNull ([Field3])
IsNull ([Field1]) AND IsNull ([Field2]) AND IsNull ([Field3])
I have also tried:
If IsNull(Previous_Employer) Then btn_UpdatePrevious2.BackColor = 52479
and that doesn't even work in the Form Activate event and even for 1 field that doesn't work.
Is this possible and where can I go to find out how to do it? I am happy to read up on it, that way I will learn what I'm doing for next time.
Thanks for your help.