Support 805.461.7300
Sales
Our Technology. Your Success.

Remove last word from a field

Description

This command will remove the last word in a field. The word "fieldname" in the command syntax below should be changed to the actual field name you want the last word removed from. This command will not affect records that contain only one word in "fieldname". You can adjust the ">0" clause so the command only acts on records with "n" numbers of spaces. Example, change ">0" to "=3" and the command will only affect records that contain "3" spaces (examples shown below).

The Command At Work

Before Command After Command
Before running command
After running command

The Command

Copy this command, then paste it into the large text area of the command window:

Replace fieldname with left(fieldname,rat(" ",alltrim(fieldname))) for occur(" ",alltrim(fieldname))>0

After clicking RUN, the excess data will be stripped from the field of choice, helping clean up the field.

« Back to Commands

I wanted to take a minute to write accolades for your employee Eric Lambeth. I have been calling on Eric for training and help in the Accuzip software since May and I want you to know that from a client standpoint, he is second to none! Eric has gone way above and beyond in helping me learn and navigate your software as well as helping us through some crazy situations we have encountered. It is clearly evident that he knows this software inside and out. It is also evident that Eric loves the customer and is willing to do whatever it takes to help – he has even answered emails and called me on the weekend to help through some stuff I was unsure of! I cannot express enough how wonderful Eric has been for our organization. I will tell you that I came to this organization with a background in BCC software with plans to transition to BCC software. Eric’s knowledge, guidance, training, and willingness to help at all hours of the day/week has sold me on Accuzip! Your software solution is more user friendly and the support staff far exceeds BCC! I am also looking forward to investigating your other software solutions.
S.M., Elmhurst, IL