Not sure if that is the right way to put it but here is my problem.
I have a filed that contains text like this "500 N Main Street Townville SC 99999-9999"
I need to be able to use a function to delimit that data to be copied into other indvidual fields.
I need the data broken down and copied into other fields. Using the example above this is how I need the data moved
Data(Field Name)
-------------------------------
500 N Main Street(OwnerAddress)
Townville(OwnerCity)
SC(OwnerState)
99999-9999(OwnerZipCode)
I am using 4 SetValue commands in a Macro for those 4 fields. Becasue the address varies in description I need to work from right to left.
The first SetValue Expression would copy from the end of the string to the space right before the zip code.
The next SetValue Expression would start at the space right before the zip code and go to the second space right before the state.
The next SetValue Expression would start at the second space right before the state and go to the third space right before the city.
The last SetValue command would start at the third space right before the city and go to the beginning of the text string (regardless of the number of spaces in-between.)
An example of a function that does this would be great. I just don't know how to have an expression count spaces.
Is this possible?
I have a filed that contains text like this "500 N Main Street Townville SC 99999-9999"
I need to be able to use a function to delimit that data to be copied into other indvidual fields.
I need the data broken down and copied into other fields. Using the example above this is how I need the data moved
Data(Field Name)
-------------------------------
500 N Main Street(OwnerAddress)
Townville(OwnerCity)
SC(OwnerState)
99999-9999(OwnerZipCode)
I am using 4 SetValue commands in a Macro for those 4 fields. Becasue the address varies in description I need to work from right to left.
The first SetValue Expression would copy from the end of the string to the space right before the zip code.
The next SetValue Expression would start at the space right before the zip code and go to the second space right before the state.
The next SetValue Expression would start at the second space right before the state and go to the third space right before the city.
The last SetValue command would start at the third space right before the city and go to the beginning of the text string (regardless of the number of spaces in-between.)
An example of a function that does this would be great. I just don't know how to have an expression count spaces.
Is this possible?