Hi All, pls help i'm new in programming and trying to make one could you pls help me to correct my code below?
What s/b my code if i want to display the value of txtPrice to lblVal and txtQty > txtPrice but if not it will multiply?
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