Hi Guys,
I am very new to VB programming (started last week) and have minimal previous experience with other languages.
I have thrown myself straight into the deep-end and I am trying to create a database with a large amount of procedures. A quick summary would be an engineering database that imports records from a .txt file, then the user can manipulate the records in numourous ways to gain relevent data.
At the moment I'm working on a particularly tricky porcedure (for me at least!) that needs to extract a 4 digit hex code from a string in one field for every record (example: HGUS=3C4C (01,11,01,11)) and then place these in a new field, maybe on a new table. The hex then needs to be converted into binary, split up again into several more fields, then compared to a look-up table as each bit of binary represents something.
At the moment the specific area that I need help with is extracting the hex and putting it into a new field/table. I've found the Mid command, but can't get it to work. How do I tell it which table and which field to work on? and how do i tell it to save the data to a new field?
As I said I'm a complete beginner, so any advice, however small would be very welcome.
Thanks in advance,
I am very new to VB programming (started last week) and have minimal previous experience with other languages.
I have thrown myself straight into the deep-end and I am trying to create a database with a large amount of procedures. A quick summary would be an engineering database that imports records from a .txt file, then the user can manipulate the records in numourous ways to gain relevent data.
At the moment I'm working on a particularly tricky porcedure (for me at least!) that needs to extract a 4 digit hex code from a string in one field for every record (example: HGUS=3C4C (01,11,01,11)) and then place these in a new field, maybe on a new table. The hex then needs to be converted into binary, split up again into several more fields, then compared to a look-up table as each bit of binary represents something.
At the moment the specific area that I need help with is extracting the hex and putting it into a new field/table. I've found the Mid command, but can't get it to work. How do I tell it which table and which field to work on? and how do i tell it to save the data to a new field?
As I said I'm a complete beginner, so any advice, however small would be very welcome.
Thanks in advance,