473,396 Members | 1,892 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,396 software developers and data experts.

Split field in two using comma (for name)

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
2 22972
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

26
by: temp | last post by:
Hi, My boss is asking me to generate a column mapping report of all the queries. Basically, we get our data from ORACLE. There's a queary that create new table from ORACLE tables. Then, there...
4
by: Paola | last post by:
How can I split a field that is being displayed as an asp:label with a dataview? Currently the field is being displayed using this code <asp:label id=dept runat="server" Font-Size="Smaller"...
1
by: RML | last post by:
Hi everyone, I am using VB.NET 2003 and an OleDBDataAdapter to update an Access table's DateTime field. The field's format is set to "General Date" (ie: 11/24/2004 8:00:00 AM). The problem is...
0
by: Peter S | last post by:
Hi: I am trying to read a SQL Server text field (Access memo field) using connection.OpenRecordSet("qry with text field") rather than database.OpenRecordSet("qry with text field")
15
by: news | last post by:
I'm making a recipe database, and need to have DB fields in mySQL that will have lists of values that would get sent to an array to be worked on. I anticipate that at times a comma will need to...
45
by: Luvin lunch | last post by:
Hi, I'm new to Access and have been asked to develop a simple Access system to replace one that already exists. There are five users of the current Access system and each of the users works off...
10
by: vabby | last post by:
Hey guys. I have a problem with my code, I can replace comma for a dot here. "var tvn = parseFloat(document.getElementById('ctl00_ContentPlaceHolder1_txtMillilTVNHraefni').value.replace(/,/g,...
3
by: Excel 009 | last post by:
Hi, Is there a way to populate sequential numbers in a field using SQL or VBA? If yes, how? Assume the following is my existing table: Fruit ID Apply Banana
2
by: shalskedar | last post by:
I 've created Report in Ms access which contains subform.The field value in the report is retrieved from the subform.When this report is exported,it shows the error as The expression you entered has...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.