Link to home
Start Free TrialLog in
Avatar of exp vg
exp vg

asked on

Access - Separate delimited field with comma or dot

The following statements work if the name field only is separated by a comma, but I have found instances where it is separated by a dot as well.

FName = Left([First Name], InStr([First Name], ",")-1)
LName = Right([First Name], Len([First Name]) - InstrRev([First Name], ","))

I have tried to change the "," to be ",",".",""))

Without success.

I also can run this, followed by a separate replace query for the dot, but I am wondering if there is an easier way.

Thank you
SOLUTION
Avatar of Joe Howard
Joe Howard
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of exp vg
exp vg

ASKER

Let me please give these a try.

Thank you both.
Please post examples of names in your database table and how they should be parsed
Avatar of exp vg

ASKER

Thank you.