They're not too large: they're just too large to use the built-in Hex
function.
However, you'd have to write your own math routines to deal with the
conversion, since if you convert them to Single or Double values, you'll
lose precision in your answer.
Unfortunately, a quick search just now didn't result in any useful code that
I could post to show you the techniques.
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
Richard said:
You are right on the nose. The numbers I am trying to convert are too large.
Oh well, thanks for all the help guys. Much appreciated!!
John Spencer (MVP) said:
Depending on the version of Access, you can get an overflow error on an
11-character number.
The largest decimal value I could handle in Access 97 was
Hex(2147483647)
Richard wrote:
thanks Steve. I tried it both ways and all I get is a "#Num!" regardless. I
appreciate the help. I actually can get the Hex number, but I wanted to try
and find a lazy way instead <G>.
Richard
:
Richard,
Why not give it a try? I am pretty sure it will work even if it is a
text field. But if not, try this...
=Hex(Val([YourNumberField]))
--
Steve Schapel, Microsoft Access MVP
Richard wrote:
Steve,
One other thing I should have mentioned, is that the 11 digit field I have
was originally set up as a text field. Does this mean your solution will not
work?