James-
Sure!
UserID: Left([FullName], Instr([FullName], " ") - 1)
FirstName: Mid([Fullname], Instr([Fullname], " ") + 1)
LastName: Mid([FullName], InstrRev([FullName], " ") + 1)
The Instr function finds the first location of the specified character scanning from the left. The InstrRev function finds the first location (from the left) of the specified character while scanning from the right.
John Viescas, author
John Viescas, author
Effective SQL
SQL Queries for Mere Mortals
Microsoft Office Access 2010 Inside Out
Microsoft Office Access 2007 Inside Out
Building Access Applications
On Oct 19, 2016, at 18:15, James Asante asanteza@gmail.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:
Thank you very much John. It splits the name as required.
Sorry to bother you again. Can it be modified to split three items where the userid is concatenated to the Full name? E.g.
0050410 Vincent Ramsein
Regards
James Asante
__._,_.___
Posted by: John Viescas <johnv@msn.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (5) |
Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.
.
__,_._,___
Tidak ada komentar:
Posting Komentar