WB786
MIS
- Mar 14, 2002
- 610
I am getting data with a field name called [Name]. I need to be able to seperate the values from this field into FirstName and LastName. This is what I am currently using:
Left$([Name],InStr(1,[Name]," ")-1)
Right$([Name],Len([Name])-InStr(1,[Name]," ")+0)
But the problem is that sometimes in the data given to me has only the first name listed and when the above update query runs it is putting the first name in the LastName column instead of the FirstName column.
Can anyone help me get this fixed??
Thanks.
WB
Left$([Name],InStr(1,[Name]," ")-1)
Right$([Name],Len([Name])-InStr(1,[Name]," ")+0)
But the problem is that sometimes in the data given to me has only the first name listed and when the above update query runs it is putting the first name in the LastName column instead of the FirstName column.
Can anyone help me get this fixed??
Thanks.