Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Only show results if field has a value Post Reply Post New Topic
Author Message
shabbaranks
Groupie
Groupie


Joined: 06 Oct 2013
Location: United Kingdom
Online Status: Offline
Posts: 66
Quote shabbaranks Replybullet Topic: Only show results if field has a value
    Posted: 15 Aug 2018 at 12:44am
Hi,
I have a purchasing report where stock can be assigned to a location or not. If the stock is stored in a location the location field will contain a value, if its not stored in a location the field is blank.

How can I filter the report to show records if the stock location contains a record?

Appreciate I could do if statements that reference the stock location ID but I thought there might be an easier way?
Thanks
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 15 Aug 2018 at 7:20am
In the select query you can put in a expression in the formula editor like this
 len({someField}) > 0

The somefield would be the location field in your case.  Also in the formula workshop be sure to select Default Values for Nulls (the Exception For Nulls selection may cause an issue).
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.