I use the code below to change the backcolor off all the text boxes on a form to the color white if the record is a new record. This works great except now they want one text box called Select_form on the form to not turn white. Is there a way to modify the code below to do this? Can the textbox called Select_form be excluded? Thanks.....
If Me.NewRecord Then
For Each ctl In Me.Controls
If ctl.ControlType = acTextBox Or ctl.ControlType = acComboBox Then
ctl.BackColor = 16777215
End If
If Me.NewRecord Then
For Each ctl In Me.Controls
If ctl.ControlType = acTextBox Or ctl.ControlType = acComboBox Then
ctl.BackColor = 16777215
End If