Newbies sparky1 Posted July 20, 2004 Newbies Posted July 20, 2004 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.
-Queue- Posted July 20, 2004 Posted July 20, 2004 Case( Right( yourfield, 1 ) = ",", Left( yourfield, Length(yourfield) - 1 ) )
Newbies sparky1 Posted July 20, 2004 Author Newbies Posted July 20, 2004 Thanks -Queue, Your formula works perfect You've saved the day.
Recommended Posts
This topic is 7772 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