Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Mid Instr Formula Post Reply Post New Topic
Author Message
ncgreyfriars
Newbie
Newbie


Joined: 06 Dec 2010
Online Status: Offline
Posts: 2
Quote ncgreyfriars Replybullet Topic: Mid Instr Formula
    Posted: 19 Dec 2017 at 12:19am
I have a field Number No that contains alpha numeric characters but i want to do an if command that says if in the field there is XXX together then show "F" else if field shows "XXXX" the "B" and if not these 2 then blank

Can some body help also want to make sure that it dosnt pick up items that have "XXX" in the "XXXX" part

Any help would be appreciated
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 19 Dec 2017 at 2:26am
just do the longer string check first

if {Table.Field} LIKE '*XXXX*' then 'F' else
if {Table.Field} LIKE '*XXX*' then 'B' else ''
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.016 seconds.