Parse query

  • Thread starter Thread starter FPMSI
  • Start date Start date
F

FPMSI

Guest
I am looking to parse names that go into a table in the field "FULLNAME", but I only want this qry to run if there is 1 space in the field.

UPDATE tblStandardLayout SET tblStandardLayout.FNAME = Left([FULLNAME],InStr([FULLNAME]," ")), tblStandardLayout.LNAME = Mid([FULLNAME],InStr([FULLNAME]," ")+1);


This would be because I dont want it to try to parse names that are not just "First Last"
 
If you only want to apply to records with a space, add a WHERE clause using InStr() to make sure there's a space.
 

Users who are viewing this thread

Back
Top Bottom