lpm Posted July 3, 2007 Posted July 3, 2007 I have a field (FullName) that reverses the order of a person’s name in another field (ReverseName). Example: Smith, Sara becomes Sara Smith This is what the calculation looks like now for the FullName field: Right (ReverseName; Length (ReverseName) - Position (ReverseName; " "; Length (ReverseName);-1)) & " " & Left (ReverseName; Position (ReverseName; " " ;1;1) - 2) This works OK, but some people have two first names (Sara Gray Smith). How can I write a calc for a Name field with two first names? Example: Smith, Sara Gray should become Sara Gray Smith TIA lpm
sbg2 Posted July 3, 2007 Posted July 3, 2007 If your data is entered consistently use the comma to get your position. Everything to left of the comma is the last name & everything to the right is the first. This will be helpful if/when you get last names like Van Buren etc.
Recommended Posts
This topic is 6414 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now