Solved

Crystal Reports Left MID O or ?

Posted on 2013-11-12
3
339 Views
Last Modified: 2013-11-13
I have item codes in my system that begin with "SS" I need strip the SS of the item code.
How can I do this?

Examples:

SSATC
SSATG
SSATL
SSBSBBM
SSBSBBMANG
SSBSBBMILK
SSBSBBPOM
SSBSBLHW
SSBSERM
SSBSFSM
SSBSFTMC
SSBSFTMR
SSBSHLGRE
SSBSHLLAV
SSBSHLMANGO
SSBSHLMIL
SSBSHLPOM
SSBSHLU
SSBSMBBP
SSBSMBBPGRE
SSBSMBBPLAV
SSBSMBBPMANG
SSBSMBBPMILK
SSBSMBBPPOM
SSBSRLO
SSBSTP
SSCOCO
SSCOCOBALM
SSCONTROLGLIDE
SSCRO
SSDPC
SSDTU
SSHBBC
SSHBFC
SSHBG
SSHSBO
SSHSC
SSHSFA
SSHSFO
SSINTROPK
SSMJTMC
SSMJTMG
SSMLBLI
SSMLCAL
SSMLENE
SSMLREW
SSMLSER
SSNNC
SSNNL
SSNNO
SSPL
SSPTOMC
SSPTOMG
SSROU
SSRTMC
SSSTP
SSTBG
0
Comment
Question by:Scott Johnston
  • 2
3 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39643661
Assuming they allstart with SS

Mid({YourField},3)

If some don't start with SS
If Left({YourField},2) == "SS" then  
   Mid({YourField},3)
Else
   {YourField}

mlmcc
0
 

Author Comment

by:Scott Johnston
ID: 39646357
Thank you
0
 

Author Closing Comment

by:Scott Johnston
ID: 39646358
worked
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question