lblAnswer.Caption = Val(txty.Text - (txtm.Text * txtx.Text))
If IsNumeric(txtm.Text) = False Then MsgBox "Please type numbers only.", 48, "Numbers Only Please"
txtm.Text = ""
txtm.SetFocus
If IsNumeric(txtx.Text) = False Then MsgBox "Please type numbers only.", 48, "Numbers Only Please"
txtx.Text = ""
txtx.SetFocus
If IsNumeric(txty.Text) = False Then MsgBox "Please type numbers only.", 48, "Numbers Only Please"
txty.Text = ""
txty.SetFocus
I want it to come up with error 48 if there isn't any numeric values in my text boxes.... But it isn't working out that way. How could I redo my code so it works??
2007-03-22
05:22:19
·
3 answers
·
asked by
Steve
3
in
Computers & Internet
➔ Programming & Design