M
Mary
I'm trying to create a form that will change the backcolor on one field based
on the value of a different field. The code below colors all the M fields
green, even though the TType value is different. Any help would be greatly
appreciated. I'm working in Access2007.
Private Sub Form_Load()
If Me.TType = "Enrolled" Then
Me.M.BackColor = vbGreen
ElseIf Me.TType = "Quality" Then
Me.M.BackColor = vbRed
ElseIf Me.TType = "Performance" Then
Me.M.BackColor = vbYellow
ElseIf Me.TType = "Safety" Then
Me.M.BackColor = vbBlue
End If
End Sub
on the value of a different field. The code below colors all the M fields
green, even though the TType value is different. Any help would be greatly
appreciated. I'm working in Access2007.
Private Sub Form_Load()
If Me.TType = "Enrolled" Then
Me.M.BackColor = vbGreen
ElseIf Me.TType = "Quality" Then
Me.M.BackColor = vbRed
ElseIf Me.TType = "Performance" Then
Me.M.BackColor = vbYellow
ElseIf Me.TType = "Safety" Then
Me.M.BackColor = vbBlue
End If
End Sub