@sprocket:
'------------------kung A-Z LANG IMO gusto ipa.input-----------------------------
Private Sub Text1_KeyPress(KeyAscii As Integer)
If (KeyAscii < 65 Or KeyAscii > 90) And (KeyAscii < 97 Or KeyAscii > 122) Then
KeyAscii = 0
End If
End Sub
'--------------------------------------------------------------------------------
'------------------kung 0-9 ang DILI nimo gusto ipa.input-------------------------
Private Sub Text1_KeyPress(KeyAscii As Integer)
If (KeyAscii >= vbKey0 And KeyAscii <= vbKey9) Then
KeyAscii = 0
End If
End Sub
'--------------------------------------------------------------------------------
'' i.add lang ni before sa THEN
AND KeyAscii<> vbKeyBack '--para maka.backspace
AND KeyAscii<> 44 '--para pwede ang comma(,)
AND KeyAscii<> 46 '--para pwede ang period or dot(.)
' AFAIK each character has equivalent ascii code...
' A=65, a=97
'if gusto u makabalo sa KeyAscii sa iba na characters:
Msgbox Asc("
character") 'character = ang character na gusto nimo masabtan ang Ascii code
'if gusto u makabalo what character :
MsgBox chr(65) 'change 65 to any number....
'''''''happy coding