G
Guest
I am trying to use a variable to represent text boxes on a form so that I can
cgahne the background colors of different boxes.
For I = 1 To 2
strWGT = "AVG_WT_" & LTrim(Str(I))
If [Forms] >= [WEIGHT SPEC] Then
[Forms].BackColor = 4259584
[Forms].ForeColor = -2147483640
Else
[Forms].BackColor = 255
[Forms].ForeColor = 16777215
FailStatus = "FAIL"
End If
I keep getting 'Object doesn't support this property or method' error.
How can I get this to work??
cgahne the background colors of different boxes.
For I = 1 To 2
strWGT = "AVG_WT_" & LTrim(Str(I))
If [Forms] >= [WEIGHT SPEC] Then
[Forms].BackColor = 4259584
[Forms].ForeColor = -2147483640
Else
[Forms].BackColor = 255
[Forms].ForeColor = 16777215
FailStatus = "FAIL"
End If
I keep getting 'Object doesn't support this property or method' error.
How can I get this to work??