Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating Initials from names

Status
Not open for further replies.

ironic100

Technical User
Jul 30, 2004
6
GB
I have a field in my screen called First Name and another field called Initials. I need to make it so that when I enter a first name, the initials field populates with the initals of however many first names there are.

For example, Tom Green Jones should come up as T G (assuming Jones is a last name). Similarly, Tom Williams Green Jones should be T W G.

I believe I need to create an SQL for loop of some sort

Please advise.
 
Thanks Dima, but this seems to work only for one name i.e. a single string without whitespace.

What I really need is a way to intialise ALL the names that are input into the 'first_name' field.

For example if I input my name as:

first_name: John Albert Downs
last_name: Smith

The 'initials' field should populate with 'J A D' with no reference to the last_name.

OK thanks alot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top