Microsoft
Software
Hardware
Network
Question : Data validation
How can I restrict a form textbox from accepting spaces in a string that is composed of letters and number. What I need is a validation to not accept spaces at the beginning end and in between the string been type in this textbox. Also I need the special character “^” to be allow.
What will it be the best way to implement this validation, on the KeyDown/Press or change of the textbox event?
Thanks in advance for the help.
Answer : Data validation
you can try this one too, this will only allow aplhanumeric and the "^"
Private Sub txtBOXNAme_KeyPress(KeyAsc
ii As Integer)
Select Case KeyAscii
Case 32 To 47, 58 To 64, 91 To 93, 95 To 96, 123 To 126
KeyAscii = 0
Case Else
End Select
End Sub
Random Solutions
How to configure email for authenticated users + some domains
Oracle Forms 11g - ORA-12154: TNS error
Do WPF and MVP go together?
The marquee progressbar hangs as the next line of the code executes
"The connection to Microsoft Exchange is unavailable. Outlook must be online or connected to complete this action."
VB script to uninstall with admin rights.
Can't print to Dymo Labelwriter 400 turbo after adding labelwriter 450 turbo drivers on windows 2003 terminal server
Overlapping digram borders
Test javamail through command line
sql tuning