Separating text

A

Alex

Hi, I have a field which has effectively two addresslines in it, separated
by a comma followed by apscae. is there anyway I can extract the text after
the comman and space and place it into the next field which is empty

Thanks

Alex
 
G

Gary Miller

You can do this in an update query by putting the following
in the UpdateTo line of your empty field. Of course, since
you didn't supply any field names to work with, you will
have to substitute mine with yours.

Mid([Address],Instr([Address],", ")+2)

Of course, this will still leave your old address intact. If
you want to strip the comma space and the line you just put
in the other field, you will now want to do this to the
Address field to get everything to the left of the comma

Left([Address], Instr([Address],", ")-1)

--

Gary Miller
Gary Miller Computer Services
Sisters, OR
________________________
 
G

Gary Miller

You're welcome!

--

Gary Miller
Gary Miller Computer Services
Sisters, OR
________________________
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top