Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Continuous Form BackColor issue

Status
Not open for further replies.

ali32uk

Technical User
Mar 31, 2011
22
0
0
GB
Hi

I would appreciate anyone's help with this

I have a continuous form which I m using the backcolor function to change a text box [Order_Frequency_100] color based on the value in another textbox [Rating100]

Code:
Private Sub Form_Current()

If Me.Rating100.Value < 4.5 Or IsNull(Me.Rating100.Value) Then
Me.Order_Frequency_100.BackColor = 238
ElseIf Me.Rating100.Value > 179.2 Then
Me.Order_Frequency_100.BackColor = 32768
Else
Me.Order_Frequency_100.BackColor = 42495
End If

End Sub

unfortunately it applies the same to all records on the continuous form, so for example it I click the first row, it changes all rows to show the same colors as the first row, what I d like is each row in the continuous form to represent colors for its own value for Rating_100

Anyone help me out? as this is a little beyond my abilities... (or maybe alot...)

Best regards

Ali
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top