Hi, Basically i have a form where a user selects a student and their score appears in a textbox. I want to show a Green box(created in access) if the score textbox is >=400, Amber box if <=300 and Red box if <=200? Thanks.
i used this but doesn't work.
Code:
If (txtTot.Value) >= 400 Then
boxred.Visible = True
boxamber.Visible = False
boxgreen.Visible = False
ElseIf (txtTot.Value) <= 300 Then
boxamber.Visible = True
boxred.Visible = False
boxgreen.Visible = False
ElseIf (txtTot.Value) <= 200 Then
boxgreen.Visible = True
boxred.Visible = False
boxamber.Visible = False
End If
i used this but doesn't work.
Code:
If (txtTot.Value) >= 400 Then
boxred.Visible = True
boxamber.Visible = False
boxgreen.Visible = False
ElseIf (txtTot.Value) <= 300 Then
boxamber.Visible = True
boxred.Visible = False
boxgreen.Visible = False
ElseIf (txtTot.Value) <= 200 Then
boxgreen.Visible = True
boxred.Visible = False
boxamber.Visible = False
End If