Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: new string field in CSV table problem Post Reply Post New Topic
Author Message
Macavity
Groupie
Groupie


Joined: 24 Sep 2012
Online Status: Offline
Posts: 93
Quote Macavity Replybullet Topic: new string field in CSV table problem
    Posted: 27 Sep 2017 at 8:15am
Hi,

Crystal reports 9 :
A new field has been added to a CSV table.

When testing on this field :

is not equal to "X"
is not like "*X*"
 
or suppress if field = "X"

returns a blank report.

This field is blank in all records, so it should show the complete table.

What does work is isnull(field).

What is wrong with this field, it shows type string

IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 27 Sep 2017 at 9:31am
I think if you alter any of your other formula options to 'use default values for nulls' they would work as you expect.
If the report is not set up on how to handle a null it will not evaluate the formula and skip or omit that row if it is part of the select criteria.
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 27 Sep 2017 at 10:20am
Also with string fields, checking for Len(field) = 0 instead of Nulls works pretty good.
IP IP Logged
Macavity
Groupie
Groupie


Joined: 24 Sep 2012
Online Status: Offline
Posts: 93
Quote Macavity Replybullet Posted: 28 Sep 2017 at 4:03am
That didn't help, but I figured it out, it's a memo field.
I created a formula left(field,1) that changed it to a string that can be used in selections
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.031 seconds.