Here is the SQL to parse your name field from table names: SELECT names.name, Mid$([Name],1,Instr(1,[Name],","-1) AS LName,
Mid$([Name],Instr(1,[Name],","+2, IIF((Instr(Instr(1,[Name],","+2, [Name]," "-1)=-1, 99, ((Instr(Instr(1,[Name],","+2, [Name]," "-1) - Instr(1,[Name],"," )) ) AS FName,
Mid$([Name],IIF((Instr(Instr(1,[Name],","+2, [Name]," "-1)=-1, 99, Instr(Instr(1,[Name],","+2 ,[Name]," "+1 )) AS MName
FROM names;
Change the red names to whatever the name of the table is in your database.
Bob Scriver
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.