G
GD
I'm stumped!! I have a subform (SF01_POI_Screen_Analyzer; continuous form
view) with a textbox (txtDupCode1Inv) using a field (DupCode1) in a table
(T01_FormattedPOIScreen) of either null values or groups of numbers between 1
& 20.
I want to use different backcolors for each group of differing numbers
(1-20), but no backcolor for the nulls. The following code for 1 creates a
yellow backcolor for all textboxes in that field, including the 1s:
Private Sub Form_Current()
If Me.txtDupCode1Inv = 1 Then
Me.txtDupCode1Inv.BackColor = vbBlue
Else
Me.txtDupCode1Inv.BackColor = vbYellow
End If
End Sub
Private Sub txtDupCode1Inv_BeforeUpdate(Cancel As Integer)
If Me.txtDupCode1Inv = 1 Then
Me.txtDupCode1Inv.BackColor = vbBlue
Else
Me.txtDupCode1Inv.BackColor = vbYellow
End If
End Sub
Any ideas?! THANKS!!!
view) with a textbox (txtDupCode1Inv) using a field (DupCode1) in a table
(T01_FormattedPOIScreen) of either null values or groups of numbers between 1
& 20.
I want to use different backcolors for each group of differing numbers
(1-20), but no backcolor for the nulls. The following code for 1 creates a
yellow backcolor for all textboxes in that field, including the 1s:
Private Sub Form_Current()
If Me.txtDupCode1Inv = 1 Then
Me.txtDupCode1Inv.BackColor = vbBlue
Else
Me.txtDupCode1Inv.BackColor = vbYellow
End If
End Sub
Private Sub txtDupCode1Inv_BeforeUpdate(Cancel As Integer)
If Me.txtDupCode1Inv = 1 Then
Me.txtDupCode1Inv.BackColor = vbBlue
Else
Me.txtDupCode1Inv.BackColor = vbYellow
End If
End Sub
Any ideas?! THANKS!!!