K
KS31
I have a query where I am pulling the customer name where it is formatted as
Last, First in most cases. However, there are customers listed where a
comma is not present and I don't want those split. I'm using the Left and
Mid function and I need the two new fields not to show any comma.
Example:
Current Name Last Name First Name
Smith, John Smith John
ABC Company ABC Company
If I use the following on Last I get an error on the ABC Company line.
Last: Left([Name],InStr([Name],", ")-1)
Is there a way that I can do this?
Last, First in most cases. However, there are customers listed where a
comma is not present and I don't want those split. I'm using the Left and
Mid function and I need the two new fields not to show any comma.
Example:
Current Name Last Name First Name
Smith, John Smith John
ABC Company ABC Company
If I use the following on Last I get an error on the ABC Company line.
Last: Left([Name],InStr([Name],", ")-1)
Is there a way that I can do this?