NewShortStuff
MIS
A form is populated with fields of a selected record from another table. I would like to mark the record by changing the font color to keep track of which records have been selected and which ones have not. I select the records through a combo box.
My form has 6 controls. All of them are populated from the table except for one. When the form is opened the focus is set to this text box. I have a procedure on the onchange as follows:
Private Sub GalsUsed_Change()
If Not IsNull(Me.GalsUsed) Then
Me.LineName.Value ForeColor = vbRed
End If
End Sub
This works, except that it changes all the records to red instead of the selected record. Please help.
My form has 6 controls. All of them are populated from the table except for one. When the form is opened the focus is set to this text box. I have a procedure on the onchange as follows:
Private Sub GalsUsed_Change()
If Not IsNull(Me.GalsUsed) Then
Me.LineName.Value ForeColor = vbRed
End If
End Sub
This works, except that it changes all the records to red instead of the selected record. Please help.