M
Martin
Hi,
I have a Control on a form that is text either YES/NO if we need to reorder
or not, if the value in the control is Yes, then i want the background colour
to be red, , if the value in the control is No then i want the colour to be
green... IS this possible through VBA?
Here is my code below if you can make more sense of that:
Private Sub QtyOnHand_AfterUpdate()
'Reorder levels --- If QtyOnhand is lower than 3 then reorder = Yes
'Reorder levels --- If QtyOnHand is higher than 3 then reorder = No
If (Me.QtyOnHand) < 3 Then
Me.Reorder = "Yes"
Else
If (Me.QtyOnHand) > 3 Then
Me.Reorder = "No"
End If
End If
End Sub
Thanks in advance
martin
I have a Control on a form that is text either YES/NO if we need to reorder
or not, if the value in the control is Yes, then i want the background colour
to be red, , if the value in the control is No then i want the colour to be
green... IS this possible through VBA?
Here is my code below if you can make more sense of that:
Private Sub QtyOnHand_AfterUpdate()
'Reorder levels --- If QtyOnhand is lower than 3 then reorder = Yes
'Reorder levels --- If QtyOnHand is higher than 3 then reorder = No
If (Me.QtyOnHand) < 3 Then
Me.Reorder = "Yes"
Else
If (Me.QtyOnHand) > 3 Then
Me.Reorder = "No"
End If
End If
End Sub
Thanks in advance
martin