If the Moisture values is > 3.5 it turns the text box = Red
is between 2.35 - 3.25 , the text box = Green
is > 3.25 and < 3.5 = Yellow
is < 2.35 and >2.10 = Yellow
is < 2.10 = Red
How can i write a Code for the same ?
I tried this code but it asks me for the text range, can someone help me resolve this issue please ?
Expand|Select|Wrap|Line Numbers
- Select Case Me![txtRange]
- Case Is > 3.5
- Me![txtMoisture Values].ForeColor = vbRed
- Case 2.35 To 3.5
- Me![txtMoisture Values].ForeColor = vbGreen
- Case 2.10 To 2.34
- Me![txtMoisture Values].ForeColor = vbYellow
- Case Is < 2.1
- Me![txtMoisture Values].ForeColor = vbRed
- Case Else
- Me![txtMoisture Values].ForeColor = vbBlack
- End Select