Re: Returning a number from a hex value.



Access will recognise it as a number if you use the &H prefix, e.g.:
? &HFF
so you can code:
If i < &HFF Then ...
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Jozef" <SPAM_O_NATOR@xxxxxxxxx> wrote in message
news:39lPe.309075$s54.307876@xxxxxxxxxxx
> Any ideas how to turn a hex value into a number? When I look at help, I
> can only find how to turn a number into a hex, but would like to find
> something that goes the other way. I tried a simple Cint, Clng etc. but
> have type conversion error when I run into a hex with a letter.
>
> Thanks!


.



Relevant Pages