RT Posted August 29, 2011 Posted August 29, 2011 hello everyone. I need some help with a calc. i have a field namefirst in this field it is filled with the name DOE JOHN i need to move the name DOE to namelast field sure this is simple but having a hard time understanding. Thanks RT
efen Posted August 29, 2011 Posted August 29, 2011 If there is ever only two names in this field (and you want only the first name in the name first field and the last name only in the last name field) then script it [pseudo code] - if this is to be done for all records Show all records Goto first record Set name last field with LeftWords (name first field; 1) Set name first field with RightWords (name first field; 1) Loop Goto next record, exit after last Set name last field with LeftWords (name first field; 1) Set name first field with RightWords (name first field; 1) End loop 1
comment Posted August 29, 2011 Posted August 29, 2011 Another option is to define two stored calculation fields using LeftWords() and RightWords(), respectively. Check your results and if everything looks fine, change the fields to type Text. You can then delete the original field. 1
RT Posted August 29, 2011 Author Posted August 29, 2011 thank you so much it worked and saved me lots of time and key presses
Recommended Posts
This topic is 4893 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