Microsoft
Software
Hardware
Network
Question : How to refer to individual characters in a textbox
How can I refer to individual characters in a textbox on an Access form? For example, let's say I have a textbox that allows 4 characters/numbers to be entered into it. I want to be able to do something like check whether the second byte in the textbox (from left to right) is a character or a number.
Example:
Textbox has this value in it: 1A34
I want to be able to check if the second byte is a letter or number. In the example above, it would be a letter (A). I don't need to do anything more than check if they are letters or numbers but I need to be able to do it on the individual byte level. I don't know how to refer to individual bytes/characters in a textbox. Thanks.
Answer : How to refer to individual characters in a textbox
2 -Typos ... assuming your text box has a Name of Text1
Private Sub Text1_Change()
If IsNumeric(Mid(Me.Text1.Tex
t , 2, 1) ) Then
' Numeric
Else
' alpha
End If
End Sub
Random Solutions
Cannot launch Ghost.exe because "Program too big to fit in memory"
Implementing Document Workflow in Sharepoint & InfoPath
collation change on system tables
Changing record source for the code
WINDOWS XP REPAIR BLUE SCREEN BAD POOL CALLER
Backup Exec will not connect to Microsoft Exchange Server 2003 Mailboxes or Public Folders.
After eseutil /d, Exch 2000 12.5GB DB but only 27MB free after online defrag?
Link External Data - Can a Link Specification be Updated?
Incorrect Syntax when running stored procedure
Help !!! Strange archive problem in Outlook 2007