Hi All,
Pls help to correct my code below.
how the Else statement work? i can't get the correct answer it's alway the IF statement is evaluated.tks.
Private Sub txtPrice_Change()
Dim intVal As Integer
If Val(txtQty.Text) >= 0 Then
lblVal.Caption = Val(txtPrice.Text)
Else
lblVal.Caption = Val(txtQty.Text) * Val(txtPrice.Text)
End If
End Sub