Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: formula not working in Page footer Post Reply Post New Topic
Author Message
malraff
Newbie
Newbie


Joined: 26 Aug 2010
Online Status: Offline
Posts: 7
Quote malraff Replybullet Topic: formula not working in Page footer
     Posted: 04 Feb 2013 at 5:03am
hi all

i have a simple formula that will not give the desired output when in the page footer

if {STOCK_CODE} in ("301258""301263""201236""301378")
then "message 1"
else "message 2"

it returns with message 2 despite the criteria being met, as soon as i move the formula to a detail or group header it behaves correctly!

anyone any ideas? i have formulas in other report page footers and they work fine!

mal
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 04 Feb 2013 at 5:20am
when you put it in the footer it is looking at the value in the last detail row of that specific page.
do you mean that you want to show message 1 or 2 based on if that page has any row that meets the above condition?
if so use shared variable formulas.
IP IP Logged
malraff
Newbie
Newbie


Joined: 26 Aug 2010
Online Status: Offline
Posts: 7
Quote malraff Replybullet Posted: 04 Feb 2013 at 6:16am
any row that meets the criteria

shared variable formulas - not sure about these will have to do some research...

IP IP Logged
malraff
Newbie
Newbie


Joined: 26 Aug 2010
Online Status: Offline
Posts: 7
Quote malraff Replybullet Posted: 05 Feb 2013 at 3:52am
shared variables worked a treat!

cheers dblank!
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