Does anyone know of a function or other solution to remove a set number of characters from the end (right) of a string. The string as a whole has no set length. the only thing that is consistent is the last 3 characters. I wish to remove the three characters and then be able to run a group by query based on the portion remaining.<br><br>Example:<br>String1 CBE-05B-101A-AM<br>String2 CBE-05B-101A-PM<br>or<br>String1 BRK-076-AM<br>String2 BRK-076-PM<br><br>If I can remove the last three characters then I can group the records according to the first part only and create totals.<br>