Get numeric value of letter

TimTDP

Registered User.
Local time
Today, 21:18
Joined
Oct 24, 2008
Messages
213
Is there a function to get the numeric value of a letter and vice versa

i.e A = 1
5 = E

Thanks
 
asc(ucase(letter))-64

on the basis that the ascii value of A is 65
 
conversely I suppose you could use:

chr(Number + 64)

to return the Letter
 
yes

one issue is that A to Z is chars 65 to 90, but lower case letters have different ascii values.

i have no idea how access manages to sort in a case-insignificant manner
 

Users who are viewing this thread

Back
Top Bottom