November 12, 2003 at 8:19 am
I have a NAME field that consistes of a person's full name (first, middle, last) separated by spaces. I want to separate the NAME field into FNAME, LNAME, and MNAME fields. My problem is that the names are of variable lengths so I can't use the right, left, or substring functions. I know there is a way of doing it but I haven't figured it out yet. Thanks for the help.
November 12, 2003 at 8:53 am
??
See my answer in the T-SQL section
Frank
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
November 12, 2003 at 2:45 pm
Are you doing an Active X?
If so you could try spliting the string on the commas into an array.
arryTemp=split(NameField,",")
Any chance to have the file better formatted before it gets to you?
November 13, 2003 at 4:23 am
November 13, 2003 at 4:36 am
This is a cross post!
I think Jonathan gave an excellent solution here
Frank
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply