aqif
Registered User.
- Local time
- Today, 23:44
- Joined
- Jul 9, 2001
- Messages
- 158
Hi
I have got a form in which I have about 30+ text boxes with number either '1' or '0'. What I want to do is at Form Current event or any other event, all the text boxes having '0' value should show as black in background and all the text boxes with value '1' should appear in red background. I know how to change back color etc but can't able to figure out a code whuch will work for all text boxes on the form. The other option is to write IF conditions for every text box which is very time consuming and difficult to maintain too.
Any suggestions?
Cheers!
Aqif

I have got a form in which I have about 30+ text boxes with number either '1' or '0'. What I want to do is at Form Current event or any other event, all the text boxes having '0' value should show as black in background and all the text boxes with value '1' should appear in red background. I know how to change back color etc but can't able to figure out a code whuch will work for all text boxes on the form. The other option is to write IF conditions for every text box which is very time consuming and difficult to maintain too.
Any suggestions?
Cheers!
Aqif