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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to display hex data? 1

Status
Not open for further replies.

ElGuapo

Programmer
Aug 29, 2001
42
0
0
SI
Is there a function in VBA, that would display hex code of a certain character in a binary file (e.g. character A has 41 for hex code, how could I get that 41 out?)
 
Check your Access online help. Here's the info:

This example uses the Hex function to return the hexadecimal value of a number.

Dim MyHex
MyHex = Hex(5) ' Returns 5.
MyHex = Hex(10) ' Returns A.
MyHex = Hex(459) ' Returns 1CB.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top