Code:
If txtNights.TextLength > 0 And txtPrice.TextLength > 0 Then txtTotal.Text = CDbl(txtPrice.Text) * CDbl(txtNights.Text) Else MsgBox("Invalid Function")
If txtNights.TextLength > 0 And txtPrice.TextLength > 0 Then txtTotal.Text = CDbl(txtPrice.Text) * CDbl(txtNights.Text) Else MsgBox("Invalid Function")
Leave a comment: