473,398 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

First name and last name

I have one client fiield that stores First and last name. I would like
to separate the names into a lastname field and firstname field. Can
anyone tell me how to do this?

thanks
Nov 13 '05 #1
3 11097
On Mon, 24 May 2004 19:29:36 GMT, Edmund Wong wrote:
I have one client fiield that stores First and last name. I would like
to separate the names into a lastname field and firstname field. Can
anyone tell me how to do this?

thanks


If all the records have the data stored as
FirstName LastName (a space between the names)
you can use:
[FirstName] = Left([FullName],InStr([FullName]," ")-1)
[LastName] = Mid([FullName],InStr([FullName]," ")+1)
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 13 '05 #2
"Edmund Wong" <ed********@sboglobal.net> wrote in message
news:q5********************************@4ax.com...
I have one client fiield that stores First and last name. I would like
to separate the names into a lastname field and firstname field. Can
anyone tell me how to do this?

thanks


Edmund,

Create a new query, and add your table, which has your clients name in it.
Drag the clients "Full Name" field into the first query design grid, then
you must create two new expressions, example:

FirstName: Left([FullName],Instr([FullName]," ")-1)

LastName: Mid([FullName],Instr([FullName]," ")+1)

Enusre to change "FullName" to the name of your field.

HTHs,

Cheers,

Dave
Nov 13 '05 #3
Edmund,

There's a DLL which splits names called NameParser. It works with any VB or
VBA application.
Check it out at:
http://www.infoplan.com.au/nameparser

- Mark
"Edmund Wong" <ed********@sboglobal.net> wrote in message
news:q5********************************@4ax.com...
I have one client fiield that stores First and last name. I would like
to separate the names into a lastname field and firstname field. Can
anyone tell me how to do this?

thanks

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Prasad Karunakaran | last post by:
I am using the C# DirectoryEntry class to retrieve the Properties of an user object in the Active Directory. I need to get the First Name and Last Name as properties. I know it is not supported...
5
by: tdmailbox | last post by:
I have a form with a child form. In the child form there is a list of names that can grow quite large. On the parent form I want to display the first name from the child form. I set up a test...
32
by: James Curran | last post by:
I'd like to make the following proposal for a new feature for the C# language. I have no connection with the C# team at Microsoft. I'm posting it here to gather input to refine it, in an "open...
1
by: Prasad Karunakaran | last post by:
I am using the C# DirectoryEntry class to retrieve the Properties of an user object in the Active Directory. I need to get the First Name and Last Name as properties. I know it is not supported...
1
by: rloef | last post by:
I have a multi-million row table with three indexes in MySQL-5.0.15. These indexes have the following number of distinct values: date 415 block 100000 scan 45 If I'm doing a query...
4
by: Kim | last post by:
Random image downloader for specified newsgroup. Hi I'm writing a small script that will download random images from a specified newsgroup. I've imported yenc into the script but I can't open the...
3
by: Mesut | last post by:
I have written a form in with radio buttons the name is set to orderby and the value is set to KundeVorName and the next value is KundeNachName and it goes so on. I wanna modify my query according...
1
by: hbkiwi | last post by:
Hi, Just playing with Access fairly new to it (like days old). Also it's my first post here so if I'm in the wrong place, sorry.. What I'm wanting to know is basically I have lets call it Table...
9
by: mgstlucia | last post by:
I know that I saw code on this forum to put the Last Name, First Name in the same field when you start with a table that has 2 separate fields (LASTNAME and FIRSTNAME) but I can't find it. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.