What's the code to ..? Check if a textbox is empty. If it is, display an error message
What's the code to ..? Check if a user has entered a number in the textbox called Text1. If not, display an error message
If ( Not Text1 = "") ) then
msgbox "some message"
End If
What's the code to ..? Check if
a user has entered anything in the textbox. If so, display a message
If (Not IsNumeric(Text1) ) then
msgbox "invalid input"
End If
If ( IsNumeric(Text1) ) then
msgbox "invalid input"
End If
If ( Text1 = "" ) then
msgbox "invalid input"
End If