Please see attached the expected output.
Main Topics
Browse All TopicsCan someone please help me in converting the 'arg1' field from hex to ascii or simple text in an Access database query. I have attached the Excel file that contains the data output from a MySQL ODBC database. I want to make sure no text is truncated in the conversion process and that all "carriage return" are eliminated. I have no idea how to accomplish this conversion.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
See here for a function that will do tghis:
http://bytes.com/topic/vis
Public Function ToHexString(ByVal sText As String) As String
Dim arrBytes As Integer() = CharsToBytes(sText)
Dim sb As StringBuilder = New StringBuilder
For i As Integer = 0 To arrBytes.Length - 1
sb.Append(String.Format("
Next
Return sb.ToString()
End Function
Everthing is in red in the vba window except for Public function...,Next, and end function........
Hi Boag2000:
So I added an extra code line called Converthex = strBuild. It seems to be working. I realized I have an additional problem. Some of the hex text length are 255 characters (an odd number that cannot be converted to hex because conversion occurs in even pairs correct?). So what I want to do is modify the attached code to first check to see if the hex integer length is 255. If it is 255, I want to drop the first two characters and the last character. Then, I want to perform the conversion.....Could you help me with this modification?
sanj
Business Accounts
Answer for Membership
by: boag2000Posted on 2009-09-28 at 09:55:08ID: 25440995
Based on the data submitted, please post a sample of the expected output.