I have and bunch of diffrent address and I would like to send each part of
the address to a diffrent text box, splitting it at the space. So if I had
the address 121 Road House Way it would look like this.
Text1=121
Text2=Road
Text3=House
Text4=Way
Text5=
Text6=
Text 5 and 6 are blank because this address does not have any more words to
split. I am using
=Left([AppAddress],InStr([AppAddress]," ")-1) for text1 but don't know how
to move beyond that. I must go in order or this will not work. I am sending
the data to another formula.
fredg said:
On Wed, 8 Feb 2006 13:23:28 -0800, Bryan wrote:
What is the code to break appart text. I have an address that I would like
to break down at each space " " and send each word in the address to a
diffrent text box.
At each space?
So what would you expect to happen with addresses like:
1256 Elm Avenue
and
1256 1/2 South Los Angeles Street, Apt. B
In any event if you have Access 2000 or newer you can use the Split
function or the Left, Mid, Right, and Instr functions with any
version of Access.
Look them all up in VBA help.
In any event, all the data must be in similar order.