Jump to content

Cut & Paste last five characters of a field


This topic is 6459 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi Everyone,

I'd like to create a script that would cut the last five characters from one field, and paste them into another, then repeat the process for all the records.

I remember doing this in the past, but it's been so long. Anyone have any advice?

Thanks,

Chris

Link to comment
Share on other sites

Instead of Cut & Paste, you could do two Replace operations. One to put the last five characters into the second field, and one to remove the last five characters from the first. Something like:

Replace [ field2 ; right(field1, 5) ]

Replace [ field1 ; left(field1, length(field1) - 5) ]

Since Replace[] is not undoable, and acts on all records in the found set, you'd better make a backup before trying this.

Link to comment
Share on other sites

This topic is 6459 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.