Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: formula to look at ALL sub table records Post Reply Post New Topic
Author Message
AESone
Newbie
Newbie


Joined: 14 May 2009
Location: Australia
Online Status: Offline
Posts: 4
Quote AESone Replybullet Topic: formula to look at ALL sub table records
    Posted: 14 May 2009 at 10:28pm



Sorry If I do not use the correct language here. I am self taught crystal/DB user.

How do I get an if formula field to look at ALL sub table records.

I have a table that holds personal information about clients. under that table I have a subtable that hold information about achievements this client has made.

There are 3 fields i am interested in on the achievements table. Date, achievement category and reference number.



I am trying to write "if" formula that will display the reference number if the date and category meet my criteria. else "no record"

The formula works but does not look at all the sub records. If there is more then 1 sub record(even if one record does meet the criteria) then it will display "no record"

Sorry if this is a stupid question, I cant find the answer anywhere.


IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 15 May 2009 at 6:24am
well, a couple of options come to mind.
1)placement of the formula, if you place it a group header or footer, it will only look at the first or last record, so usually this would be placed in a details section.
2) the formula is not working as expected.  I usually will break down a formula to make sure that it is 'seeing' and reacting the way I expect it to.  For example: if a formula has an if statement, I will start with just the first if, and let the formula print true or false, just so I can see if it is working, I would also include on the same line of the report, the field(s) the if statement is checking so that I can see that all lines up as I think it should.
 
HTH
IP IP Logged
AESone
Newbie
Newbie


Joined: 14 May 2009
Location: Australia
Online Status: Offline
Posts: 4
Quote AESone Replybullet Posted: 17 May 2009 at 3:37pm

Gold, thank you.

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.