Bilbo_Baggins_Esq
Registered User.
- Local time
- Today, 12:04
- Joined
- Jul 5, 2007
- Messages
- 586
HI All!
Long time no see.
I hope everyone has been well and fine.
I find myself needed help creating a custom VBA function in Access (2016).
I need to convert the add-in load time values stored as binary registry keys in the registry to decimal values.
A few sample values look like this:
05 00 00 00 5e 00 00 00 71 02 00 00 cb 00 00 00 da 00 00 00 4e 00 00 00
05 00 00 00 3e 00 00 00 4e 00 00 00 5e 00 00 00 f4 01 00 00 ac 00 00 00
05 00 00 00 10 00 00 00 10 00 00 00 0d 03 00 00 1f 00 00 00 0f 00 00 00
02 00 00 00 0F 00 00 00 2F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
As Shown above, I have added a space “ “ between each pair, but in the registry they are stored as true binary pairs (24 pairs each)
Now, before any on suggests it would be easier for my quest to just capture the actual binary value directly from the local registry, unfortunately, that isn’t possible.
The load times being converted are not from my machine but rather are supplied to me in CSV format from other machines.
I have already imported the CSV to an Access table and the values are in a “Short Text” field.
DISCLAIMER: While I have done a lot with Access and other development over the many years, I have thus far managed to successfully avoid contact with conversion of Binary and or Hex so I’m a bit sketchy on just exactly how to actually do it.
I can work with strings, no problem, but conversion of binary values to decimal I’ve never worked with.
I did some searching and I did find a “BinToDec” function offered by “datAdrenaline.”
I’ve inserted it into a module but I knew ahead of time it wasn’t going to work because it specifies an inpout length of 32 characters or less and these are 48 even minus the spaces between the values.
I’d deeply appreciate some help with a function here.
THANKS IN ADVANCE
Long time no see.
I hope everyone has been well and fine.
I find myself needed help creating a custom VBA function in Access (2016).
I need to convert the add-in load time values stored as binary registry keys in the registry to decimal values.
A few sample values look like this:
05 00 00 00 5e 00 00 00 71 02 00 00 cb 00 00 00 da 00 00 00 4e 00 00 00
05 00 00 00 3e 00 00 00 4e 00 00 00 5e 00 00 00 f4 01 00 00 ac 00 00 00
05 00 00 00 10 00 00 00 10 00 00 00 0d 03 00 00 1f 00 00 00 0f 00 00 00
02 00 00 00 0F 00 00 00 2F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
As Shown above, I have added a space “ “ between each pair, but in the registry they are stored as true binary pairs (24 pairs each)
Now, before any on suggests it would be easier for my quest to just capture the actual binary value directly from the local registry, unfortunately, that isn’t possible.
The load times being converted are not from my machine but rather are supplied to me in CSV format from other machines.
I have already imported the CSV to an Access table and the values are in a “Short Text” field.
DISCLAIMER: While I have done a lot with Access and other development over the many years, I have thus far managed to successfully avoid contact with conversion of Binary and or Hex so I’m a bit sketchy on just exactly how to actually do it.
I can work with strings, no problem, but conversion of binary values to decimal I’ve never worked with.
I did some searching and I did find a “BinToDec” function offered by “datAdrenaline.”
I’ve inserted it into a module but I knew ahead of time it wasn’t going to work because it specifies an inpout length of 32 characters or less and these are 48 even minus the spaces between the values.
I’d deeply appreciate some help with a function here.
THANKS IN ADVANCE