G
Guest
Hello!
I would like your help to next:
I have a Form based in T_Table.
In this form:
i - 2 TextBoxes to write a value and TextBox to calc the average;
ii - 6 colored OLEUnbound in Form to simulate traffic lights. 3 to On and 3
to Off according of the value situation.
If I write in Event Procedure in On Curent of the Form:
' *************Start Code
Private Sub Form_Current()
If [txtValue] = "0" Then
Red_On.Visible = False
Yellow_On.Visible = False
Green_On.Visible = False
Red_Off.Visible = True
Yellow_Off.Visible = True
Green_Off.Visible = True
Else
If [txtValue] <> "0" Then
Red_On.Visible = True
Yellow_On.Visible = True
Green_On.Visible = True
Red_Off.Visible = False
Yellow_Off.Visible = False
Green_Off.Visible = False
End If
End If
End Sub
' **************End Code
Work fine (when compare with Zero).
But, when I need to compare different condition, for example with a greate
value to average I don't know write the code...
Thanks in advance.
an
I would like your help to next:
I have a Form based in T_Table.
In this form:
i - 2 TextBoxes to write a value and TextBox to calc the average;
ii - 6 colored OLEUnbound in Form to simulate traffic lights. 3 to On and 3
to Off according of the value situation.
If I write in Event Procedure in On Curent of the Form:
' *************Start Code
Private Sub Form_Current()
If [txtValue] = "0" Then
Red_On.Visible = False
Yellow_On.Visible = False
Green_On.Visible = False
Red_Off.Visible = True
Yellow_Off.Visible = True
Green_Off.Visible = True
Else
If [txtValue] <> "0" Then
Red_On.Visible = True
Yellow_On.Visible = True
Green_On.Visible = True
Red_Off.Visible = False
Yellow_Off.Visible = False
Green_Off.Visible = False
End If
End If
End Sub
' **************End Code
Work fine (when compare with Zero).
But, when I need to compare different condition, for example with a greate
value to average I don't know write the code...
Thanks in advance.
an