Solved

Field to convert Decimal to Hex

Posted on 2001-06-26
4
411 Views
Last Modified: 2006-11-17
I want to create a field in my database, that will automatically convert a decimal value (from another field) to the equivalent Hex value.

0
Comment
Question by:Cuong
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
TheMek earned 40 total points
ID: 6227224
Hi Cuong,

I don't think this is possible at table-level, but if you base a form on the respective table, you can set the controlsource to
= Hex([YourDecimalField])
to get the desired hexadecimal value.
Another option is to update the hexadecimal field in the after-update event of the decimal field (works with the same Hex function).
Hope this helps,
   Erwin
0
 
LVL 12

Expert Comment

by:DRRYAN3
ID: 6228019
What is the database?  Do you intend to store the hex value as a string, otherwise, binary=hex=octal=decimal.
0
 
LVL 12

Expert Comment

by:DRRYAN3
ID: 6228022
Sorry, I know it's Access, but I meant to ask what version.
0
 

Author Comment

by:Cuong
ID: 6230506
Cheers! Done it now!
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now