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

Split field in two using comma (for name)

P: n/a
I have an excel spreadsheet that I imported into Access, and there is a
Name field in the format of last name, first name. I'd like to break
this into 2 separate fields. How can I do this?
TIA!

Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On 25 Feb 2005 16:05:15 -0800, mi*******@stupid.com wrote:
I have an excel spreadsheet that I imported into Access, and there is a
Name field in the format of last name, first name. I'd like to break
this into 2 separate fields. How can I do this?
TIA!


As long as all of the data is in the form of
LastName, FirstName then:

[LastName] = Left([FullName],InStr([FullName],",")-1)
[FirstName] = Mid([FullName],InStr([FullName],",")+2)
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 13 '05 #2

P: n/a
There are 3rd party utilities that can handle this for Microsoft Access.
Take a look at this one which I have used to parse first name from last
name.

http://www.infoplan.com.au/splitter
<mi*******@stupid.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
I have an excel spreadsheet that I imported into Access, and there is a
Name field in the format of last name, first name. I'd like to break
this into 2 separate fields. How can I do this?
TIA!

Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.