By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,940 Members | 611 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,940 IT Pros & Developers. It's quick & easy.

Get first letter of each word in a string

P: n/a
I want to write letters to people in my database. I have a field
Surname and a field FirstNames.

How do I get the first letters of each word in FirstNames?

For example: Surname "Bloggs" FirstNames "John Henry"

I want to addres a letter to "J H Bloggs"
Nov 12 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Expr1: Left([nm],1) & IIf(InStr(1,[nm],"
")<>0,Mid([nm],InStr(1,[nm],"-"),2),"")

Use this in a query and it should do the trick for 1 or 2 FirstNames.

P
"Peter McKeown" <pe**********@blackden2.freeserve.co.uk> wrote in message
news:95**************************@posting.google.c om...
I want to write letters to people in my database. I have a field
Surname and a field FirstNames.

How do I get the first letters of each word in FirstNames?

For example: Surname "Bloggs" FirstNames "John Henry"

I want to addres a letter to "J H Bloggs"

Nov 12 '05 #2

P: n/a
check out Dev's site for string manipulation...modify as needed.

http://www.mvps.org/access/strings/index.html
Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.