P
Patrick
Simon:
copy this code in the 'Click event' of a button.
I'm not sure what your setup is so I'm assuming for now
that your testing a textBox with code behing a button.
The code:
If IsNumeric(txttest.Value) Then
MsgBox "This text only as numbers."
Else
MsgBox "This text as a mixture of alpha an numeric
characters."
End If
The 'isNumeric' is the key. It lets you know right away if
the text entered in a certain text boxe is numeric or not.
Hope this helps, are gives you at least a couple of ideas
on How to proceed...
PAtrick
of only 0123456789. I also want to keep the datatype of
this text box as text. Anybody has any idea or codes to
accomplish this?
copy this code in the 'Click event' of a button.
I'm not sure what your setup is so I'm assuming for now
that your testing a textBox with code behing a button.
The code:
If IsNumeric(txttest.Value) Then
MsgBox "This text only as numbers."
Else
MsgBox "This text as a mixture of alpha an numeric
characters."
End If
The 'isNumeric' is the key. It lets you know right away if
the text entered in a certain text boxe is numeric or not.
Hope this helps, are gives you at least a couple of ideas
on How to proceed...
PAtrick
that whatever the users key in is 10 characters consisting-----Original Message-----
Hi,
I have a text box of text datatype. I want to make sure
of only 0123456789. I also want to keep the datatype of
this text box as text. Anybody has any idea or codes to
accomplish this?