Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Expert 14    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Separate First Last Names
Deon Riley 
    
13 years ago
Hi Richard,

Your teaching makes so easy for me to split bad data and to replace and minipulate data; however, this next scenario frustrates me, which is:

I've inherited and now have to fix a Table with Staff data that looks like this:

ID StaffName      
1  DeonRiley
2  RicardoRosti
3  KarynJones
4  BevCramer
5  StevePlessis
6  JockHobbs
7  MelSmithy
8  PeachesGedore
etc. over 10000 records

As you can see the above bad data the First and Last names are joined into one string with no spaces or any delimeter except, the UCase letter of the surname.

What process would I use to Parse the first and second part of the name into separate FirstName and LastName fields.

Thank you for your help with this Richard.

Kindest regards,

Deon


Reply from Richard Rost:

That's not going to be easy, but it's not impossible. You would have to create a custom function in VBA and loop down the field looking for the first capital letter (either by ASC char value or with a string). Once you have that, you can use the rest of my techniques to split the field. If you can't figure out how to do it, let me know and I can put the function together for you. Probably take me about half an hour.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Expert 14.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 4/30/2026 5:18:47 PM. PLT: 1s