Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Filtering strings on the ends Post Reply Post New Topic
Author Message
acidraine
Newbie
Newbie


Joined: 16 Jan 2012
Online Status: Offline
Posts: 6
Quote acidraine Replybullet Topic: Filtering strings on the ends
    Posted: 16 Jan 2012 at 7:07am
New to the forum, so go easy on me for this question; as I've tried looking around to the best of my ability.
 
In my report I have an invoice number field that is in string format. I'm looking to filter out all of these invoice numbers that do not end in 0. The logic I found below I used got rid of most of them, but there are some that are still showing up and I have no clue why:
 
if {INVOICE_NUM}[len({INVOICE_NUM})-1] = "0" then {INVOICE_NUM}
 
I would appreciate any help coming my way.
IP IP Logged
FrnhtGLI
Senior Member
Senior Member
Avatar

Joined: 22 May 2009
Online Status: Offline
Posts: 347
Quote FrnhtGLI Replybullet Posted: 16 Jan 2012 at 9:18am
You could put this into Report>Selection Formulas>Record:

right({inovice_num},1)='0'


Edited by FrnhtGLI - 16 Jan 2012 at 9:18am
|< /\ '][' ( )
IP IP Logged
acidraine
Newbie
Newbie


Joined: 16 Jan 2012
Online Status: Offline
Posts: 6
Quote acidraine Replybullet Posted: 16 Jan 2012 at 9:38am
Works perfectly. Thanks so much for the assistance!
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.030 seconds.