Bronte1226
Technical User
I have a database with 3 address fields which vary very widely in the data each has in it. I need to parse this data out into separate fields, and perhaps concatenate them back into proper formats afterward. The goal is to clean up the addresses into a structured format. Prior to this, the information was entered in a free form matter that makes this process nothing short of a nightmare.
For instance
Over the three address fields, the address1 field might have a street address, or it might have an attention to name, or it might have po box with city and state, etc. This continues on to the address2 and address3 fields.
My thinking was to parse out by spaces in each field. That way everything is separated and can be put back together by markes such as PO and Box.
My question!
What is the best way to parse out this information?
I used this to move out the first part of address1 Left$([Add1],InStr(1,[Add1]," ")-1)
Worked great. Now, how do I either delete the parsed out information or move on to the next space in the field?
In any given field there might be 2 to 6 spaces in an address. So one field needs to be parsed out into 6 fields!
For instance
Over the three address fields, the address1 field might have a street address, or it might have an attention to name, or it might have po box with city and state, etc. This continues on to the address2 and address3 fields.
My thinking was to parse out by spaces in each field. That way everything is separated and can be put back together by markes such as PO and Box.
My question!
What is the best way to parse out this information?
I used this to move out the first part of address1 Left$([Add1],InStr(1,[Add1]," ")-1)
Worked great. Now, how do I either delete the parsed out information or move on to the next space in the field?
In any given field there might be 2 to 6 spaces in an address. So one field needs to be parsed out into 6 fields!