Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Formula trouble Post Reply Post New Topic
Author Message
anoble1
Newbie
Newbie
Avatar

Joined: 02 Oct 2015
Location: United States
Online Status: Offline
Posts: 5
Quote anoble1 Replybullet Topic: Formula trouble
    Posted: 05 Jan 2022 at 7:27am
I have 2 types of invoices this is looking at evidently. One of them doesn't even have a SPCD field at all tied anywhere. I need the program to look at the SPCD field first though because the majority of the records have this listed first (Zipcode). How can I tell the program to skip over the SPCD if there is no record and go to the CMASSH.CS_PCD?

IF (TRIM({MNBDM.BM_SPCD}))<>"" AND not isnull({MNBDM.BM_SPCD}) then
{MNBDM.BM_SPCD} else
{CMASSH.CS_PCD}
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4362
Quote lockwelle Replybullet Posted: 06 Jan 2022 at 11:26am
As DBlank says:
Always check ISNULL first. If the value is null, in this case, Crystal will throw an error and not tell you.

Try checking ISNULL first and then <> "" and see if that helps.

HTH
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.000 seconds.