S
Sharon
How can I apply this code to all the field names that end
in "excpt"? Can you use a wildcard? *excpt? Or do you
have to write the code for every field?
Also, is there cleaner way to write this code?
-----------------------------------------
Private Sub prncpl_bal_excpt_AfterUpdate()
If Me.prncpl_bal_excpt <> "0" Then
Me.prncpl_bal_excpt.ForeColor = vbRed
Me.prncpl_bal_excpt.BackColor = vbYellow
Else
Me.prncpl_bal_excpt.ForeColor = vbBlack
Me.prncpl_bal_excpt.BackColor = vbWhite
End If
in "excpt"? Can you use a wildcard? *excpt? Or do you
have to write the code for every field?
Also, is there cleaner way to write this code?
-----------------------------------------
Private Sub prncpl_bal_excpt_AfterUpdate()
If Me.prncpl_bal_excpt <> "0" Then
Me.prncpl_bal_excpt.ForeColor = vbRed
Me.prncpl_bal_excpt.BackColor = vbYellow
Else
Me.prncpl_bal_excpt.ForeColor = vbBlack
Me.prncpl_bal_excpt.BackColor = vbWhite
End If