Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Field Contains a Number Post Reply Post New Topic
Author Message
roxaneamanda
Newbie
Newbie


Joined: 10 Aug 2009
Location: United Kingdom
Online Status: Offline
Posts: 23
Quote roxaneamanda Replybullet Topic: Field Contains a Number
     Posted: 04 Jan 2010 at 5:37am
Hi,
 
How do I add a selection criteria to eliminate items within the field which contain a number?
 
I have a list containing text and numbers, I only want to see the text strings, not the strigns which contain a number.
 
Thanks
IP IP Logged
AdamField
Groupie
Groupie


Joined: 04 Jun 2009
Online Status: Offline
Posts: 88
Quote AdamField Replybullet Posted: 04 Jan 2010 at 6:05am

Hey Roxane,

Is it 1 long data field with both text and numbers and you want to filter out the numbers out of that 1 data field ?
or is it a record with multiple field and you only want to display the records where there is no field with numbers
 
like
case 1
 
field filled with somthing like this   "record number 12 going to record number13" and you want to see "record number going to record numer"
 
or
case2
 
field1         field 2         field3
 
record        number         12
going         to               record
number       13                  .
 
and you only want to display record 2 as that one doesn't have numbers
 
 
IP IP Logged
roxaneamanda
Newbie
Newbie


Joined: 10 Aug 2009
Location: United Kingdom
Online Status: Offline
Posts: 23
Quote roxaneamanda Replybullet Posted: 04 Jan 2010 at 6:17am
I have the follwing list; and I only want to see the ones in the list which do not contain numbers.
 
Fox and Hounds

Crown Inn

Cross Keys

Coach & Horses

Bulls Head

Board Room

Black Horse

99

98

97

96

IP IP Logged
AdamField
Groupie
Groupie


Joined: 04 Jun 2009
Online Status: Offline
Posts: 88
Quote AdamField Replybullet Posted: 04 Jan 2010 at 6:34am
Hey roxane,
 
What you could do (altho it's not the best solution it's the only thing i can come up with now)
 
on the detail section-expert(right click on the detail ) you select surpress (first option with the possibility to add a formula)
and you add as formula
numerictext ({your.list}) = true
 
i think you can also do this in the record section more early in the report
 
Greetings
 
Adam
IP IP Logged
roxaneamanda
Newbie
Newbie


Joined: 10 Aug 2009
Location: United Kingdom
Online Status: Offline
Posts: 23
Quote roxaneamanda Replybullet Posted: 04 Jan 2010 at 6:43am
Thanks,
 
Thies does not seem to work on strings which also contain symbols, eg 215/1 does not supress?
IP IP Logged
AdamField
Groupie
Groupie


Joined: 04 Jun 2009
Online Status: Offline
Posts: 88
Quote AdamField Replybullet Posted: 04 Jan 2010 at 7:10am
Hey Roxane,
 
Nope that doesn't work on mixed fields.
i didn't include that as it wasn't in your list
 
I can't come up with a solution for mixed stuff i'm afraid.
i think you could play a bit with the VAL command but can't get it working myself here on a short time...
 
Maybe one of the more experianced users can answer this better.
 
Adam
IP IP Logged
roxaneamanda
Newbie
Newbie


Joined: 10 Aug 2009
Location: United Kingdom
Online Status: Offline
Posts: 23
Quote roxaneamanda Replybullet Posted: 04 Jan 2010 at 7:20am
Thanks for all your help Adam, I'll keep playing here too.
 
 
IP IP Logged
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