Hi All
In the following code I am getting an error of "Function call on Left hand side of assignment must return variant or object"
It has a number entered in the text box. Any remedies appreciated.
If Val(Txt1.Text) = 0 Then
MsgBox "You must enter a positive value in the first field!", 0, "Error"
Txt1.SetFocus
Else
Val(Tet1.Text) = Val(Txt1.Text)
If Val(Tet1.Text) <= 4 Then
Tet1.FontBold = True
Tet1.ForeColor = vbRed
Tet1.Text = Tet1.Text + "*"
Else
Tet1.FontBold = True
Tet1.ForeColor = vbBlack
End If
End If
In the following code I am getting an error of "Function call on Left hand side of assignment must return variant or object"
It has a number entered in the text box. Any remedies appreciated.
If Val(Txt1.Text) = 0 Then
MsgBox "You must enter a positive value in the first field!", 0, "Error"
Txt1.SetFocus
Else
Val(Tet1.Text) = Val(Txt1.Text)
If Val(Tet1.Text) <= 4 Then
Tet1.FontBold = True
Tet1.ForeColor = vbRed
Tet1.Text = Tet1.Text + "*"
Else
Tet1.FontBold = True
Tet1.ForeColor = vbBlack
End If
End If