Hello I am trying to clean up an address field.
The addresses are in one field (Address1) and typically have a format of:
11 White Street - Ft1 - Konopka
28 Brown Road - Smith
I basically want to separate the address from the name.
So in a query I would like:
1. A field with all the text on the left of the last "-"
2. A field with all the text on the right of the last "-"
To solve requirement 1, I have tried:
But this does not work where there is more than one "-"
Many thanks Mark
The addresses are in one field (Address1) and typically have a format of:
11 White Street - Ft1 - Konopka
28 Brown Road - Smith
I basically want to separate the address from the name.
So in a query I would like:
1. A field with all the text on the left of the last "-"
2. A field with all the text on the right of the last "-"
To solve requirement 1, I have tried:
Code:
AddressOnly: Left([Address1],InStr([Address1],"-")-1)
But this does not work where there is more than one "-"
Many thanks Mark