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

Macro or VB to parse codes to string value MsgBox

Status
Not open for further replies.

jregier

Technical User
Jan 14, 2002
4
CA
I have a table or query with a field called "LOG". This is a memo field containing a string of letter codes. ie "001012110 002351024 0026 1020" describing at 11 character intervals the list of materials logged at various depths. The log string length is variable and several approach 640 string length. I have a table of codes and material values ie 10 corresponding to SAND and 20 to GRVL etc. I tried using dlookup in a query on the LOG string, but the return string is too long. What I would like to do is design a macro or VB that returns a message box with the converted "LOG" codes to material values, in lengths of 40 characters per line, with a list popdown to view the log. I know what I need to do is create one long string of code, then parse it line by line. Any help is appreciated - I am faily new to access macros and VB.
Jim


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top