Hi folks,
I've run into a little snag with one of my forms and i was hoping someone could help me with this. here's the problem. i have a form with various data validation controls that erases the invalid value and changes the BackColor property of the controls when invalid data is entered. I would like this formatting to be retained when the current record losses focus. I need to write a For...Next loop that loops thru each control and determines if the control is Null. If the control is Null then it changes the BackColor property to 65280. I can't seem to get this to work, could someone help me with the code. I think i need a nested If statement in a For...Next loop but i'm not sure how to set up the For....Next loop.
Thanks very much.
I've run into a little snag with one of my forms and i was hoping someone could help me with this. here's the problem. i have a form with various data validation controls that erases the invalid value and changes the BackColor property of the controls when invalid data is entered. I would like this formatting to be retained when the current record losses focus. I need to write a For...Next loop that loops thru each control and determines if the control is Null. If the control is Null then it changes the BackColor property to 65280. I can't seem to get this to work, could someone help me with the code. I think i need a nested If statement in a For...Next loop but i'm not sure how to set up the For....Next loop.
Thanks very much.