Spiliting up a Post code

S

Simon

I have a field in a report that displays a UK post Codes like TN23
8LP

I would like to slipt it up into lots of fields in a report

eg

First Charater = T
Second Charater = N
Third Charater = 2
Forth Charater = 3
Fifth Charater =
Sixth Charater = 8
Seventh Charater _L
Eighth Charater = P


Thanks
 
G

Guest

Hi Simon

Use the Mid function like...

=Mid(Postcode, 1, 1) Gives 1st character
=Mid(Postcode, 2, 1) Gives 2nd character
=Mid(Postcode, 3, 1) Gives 3rd character
etc

hth

Andy Hull
 
T

Tony Toews [MVP]

Simon said:
I have a field in a report that displays a UK post Codes like TN23
8LP

I would like to slipt it up into lots of fields in a report

Why? What's your objective or problem you are trying to solve?

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 

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

Similar Threads


Top