Discussion Locked

Access97 dec to hex conversion (?)

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Is there a function or method within MicroSoft Access97 to convert a decimal number to a hexidecimal number? I know there is a function to do the reverse hex to dec (Hex (number)) but I can not seem to find a way to do the reverse.

5 replies

by dklippert

The two functions are Hex2Dec and Dec2Hex.
I don't have A97 installed right now, but Excel does have the capability as well.

by is

Hi Mharten,

Hex(number is actually what you are looking for, it returns the hexidecimal number of the number. This should do the trick for you. It is a Visual Basic function so it should work in your VBA code.

This discussion is closed to new replies.