How to convert Hex to Decimal in Access queries ?

  • Thread starter Thread starter Guest
  • Start date Start date
Prefix the hex value with &H, and use Val() to get the value as a decimal:
Val("&H" & [YourHexField])
 
Sorry. I see what happened here - used an Oh instead of a zero.

However, it did return 715, so I think CINT("&H" & [YourHexField]) works better. It returns an error if the HEX is invalid.
 
Back
Top