Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hexadecimal to decimal 1

Status
Not open for further replies.

mkallover

Programmer
Feb 6, 2008
88
US
If I have a field in a database that contains hexadecimal numbers, is there a way that I can convert these to decimal through a query?
 
You might expand it to
Code:
Val("&H" & [HexField] & "&")

The first version I gave you can hit the "integer trap" ... which means that it will attempt to convert to an integer data type and, if the HEX number is too large (i.e. > 32767), the conversion will error.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top