M
Markus
When I use the Conditional Format from the Format Menu on
the field value on my combo box the conditions hold true
when I scroll between records on the form. Unfortunately
this limits you to 3 criteria. Instead I am trying to use
VB to conditionally format the cells since I have 6
criteria. Here is what I am using...
Private Sub QC10600_AfterUpdate()
Select Case .Value
Case "EV"
.BackColor = 16711680
.ForeColor = 16777215
.FontBold = True
Case "CA"
.BackColor = 57600
.ForeColor = 16777215
.FontBold = True
Case "RE"
.BackColor = 8388736
.ForeColor = 16777215
.FontBold = True
Case "TR"
.BackColor = 65535
.ForeColor = 16777215
.FontBold = True
Case "TO"
.BackColor = 255
.ForeColor = 16777215
.FontBold = True
Case "PR"
.BackColor = 435844
.BackColor = 16777215
.FontBold = True
End Select
End With
End Sub
This is set to the AfterUpdate Event of the combo box but
when I scroll through records it keeps the format of the
last update I made regardless of what the value is in the
new record. I want the format to change depending on what
the value is in the field of the combo box when it is
changed and when I someone scrolls through the records.
Thanks for any assistance.
the field value on my combo box the conditions hold true
when I scroll between records on the form. Unfortunately
this limits you to 3 criteria. Instead I am trying to use
VB to conditionally format the cells since I have 6
criteria. Here is what I am using...
Private Sub QC10600_AfterUpdate()
Select Case .Value
Case "EV"
.BackColor = 16711680
.ForeColor = 16777215
.FontBold = True
Case "CA"
.BackColor = 57600
.ForeColor = 16777215
.FontBold = True
Case "RE"
.BackColor = 8388736
.ForeColor = 16777215
.FontBold = True
Case "TR"
.BackColor = 65535
.ForeColor = 16777215
.FontBold = True
Case "TO"
.BackColor = 255
.ForeColor = 16777215
.FontBold = True
Case "PR"
.BackColor = 435844
.BackColor = 16777215
.FontBold = True
End Select
End With
End Sub
This is set to the AfterUpdate Event of the combo box but
when I scroll through records it keeps the format of the
last update I made regardless of what the value is in the
new record. I want the format to change depending on what
the value is in the field of the combo box when it is
changed and when I someone scrolls through the records.
Thanks for any assistance.