It has to be in the Form_Current event, as orange suggested. In the OnOpen or OnLoad event the ForeColor for all Records will be formatted according to the state of ContrName in the first Record displayed on opening!
BTW, this isn't hard to do for multiple Controls, whether for two or thirty Controls!
In Form Design View
- Press and hold down the <Shift> Key
- Click on each Control you want to Format to select it
- Go to Conditional on the Ribbon
- Under Condition1 use the dropdown to select Expression Is
- In the condition box enter IsNull([YourControlName])
- Click on the ForeColor Icon and select the desired color
- Click on OK
replacing YourControlName with the actual name all of this is based on!
Linq ;0)>
The problem with making anything foolproof...is that fools are so darn ingenious!
All posts/responses based on Access 2003/2007