Jump to content

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

Recommended Posts

  • Newbies
Posted

I need to strip/remove the last comma from thousands of records in our database. We need to leave the middle comma in place and we only need to remove the last comma:

As an example the existing records read like this:

ENGINE HARNESS, with gauges,

FORWARD LAMP HARNESS, with gauges,

The new records need to read like this:

ENGINE HARNESS, with gauges

FORWARD LAMP HARNESS, with gauges

I've tried creating a new calculation field and utilizing some of the different functions (right, replace, substitute etc.), but just can't seem to solve this one. Seems simple, but this one has me stumped. Any suggestions?

Thanks.

Posted

Case( Right( yourfield, 1 ) = ",", Left( yourfield, Length(yourfield) - 1 ) )

This topic is 7500 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.