Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Suppressing Subreports Post Reply Post New Topic
<< Prev Page  of 2
Author Message
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 09 May 2012 at 6:35am
ok, if the field does not have a currency in it, then that will cause the if statement to be false everywhere, perhaps you can check the Cal_currency field instead.
 
IP IP Logged
khyulitz10
Newbie
Newbie


Joined: 11 Aug 2011
Location: United Kingdom
Online Status: Offline
Posts: 24
Quote khyulitz10 Replybullet Posted: 10 May 2012 at 11:30pm
Thanks Kostya1122 and Lockwell.
 
I found out that there's an exchange rate field which I can use to do the converting..(My bad) Thanks a lot for your help though.
 
There's a one last question and i hope it'll solve the problem..
 
"How do I add the subtotal for a field that has a suppression formula in it? "
 
To make it clearer. I have a field called "Calc_AgeInvAmt1" that shows the value of the Future invoice amount. In the format field, in the Common Tab, the Suppress box is ticked and has a formula in it which is..
 
((not PreviousIsNull ({ARDTLS.InvoiceNum}) and (Previous ({ARDTLS.InvoiceNum}) = {ARDTLS.InvoiceNum}))
and {@RecNum} > 1) or ({ARDTLS.Calc_AgeInvAmt1} = 0)
 
 
So it only shows the invoice amount that is due within the next 2 weeks or so and suppressed the ones that are not.
 
My problem is if I make a running total using this field, I get the sum of all the invoices including the suppressed ones. I only want the sum of all the visible amount shows in this column.
 
How do I do this please?
 
Thanks in advance...


Edited by khyulitz10 - 11 May 2012 at 5:06am
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 11 May 2012 at 4:07am
if you are using shared variables, you would add logic to not in the values that are not visible.
 
If you are using the running totals...well, I'm sure that there is a way, I am just not an expert...DBlank is the one to go to for running total questions.
IP IP Logged
kostya1122
Senior Member
Senior Member
Avatar

Joined: 13 Jun 2011
Online Status: Offline
Posts: 475
Quote kostya1122 Replybullet Posted: 11 May 2012 at 5:07am
if you want to use running totals try
under Evaluate >> use a formula >>click x-2 button place
not(
((not PreviousIsNull ({ARDTLS.InvoiceNum}) and (Previous ({ARDTLS.InvoiceNum}) = {ARDTLS.InvoiceNum}))
and {@RecNum} > 1) or ({ARDTLS.Calc_AgeInvAmt1} = 0)
)

IP IP Logged
khyulitz10
Newbie
Newbie


Joined: 11 Aug 2011
Location: United Kingdom
Online Status: Offline
Posts: 24
Quote khyulitz10 Replybullet Posted: 11 May 2012 at 5:13am
That's the thing I'm still not sure about using variable declarations yet...still looking for tutorials..Thanks anyway, you guys helped me a lot.
I'll just play around with it more..I know there's definitely a way to do it too.
 
Thanks Lockwelle..
IP IP Logged
khyulitz10
Newbie
Newbie


Joined: 11 Aug 2011
Location: United Kingdom
Online Status: Offline
Posts: 24
Quote khyulitz10 Replybullet Posted: 11 May 2012 at 5:23am
AGHHHHH!!!!
 
YOU'RE SUCH A GENiOUS KOSTYA1122!!!
 
It finally worked!! yey!!! \:D/
 
I'm so happy!! sorry I'm a bit over-reacted here but yey!! We finally did this!
 
Thank you! Thank you! Thank You.
 
Have a great weekend to you and Lockwelle..
 
Thank you !!!
 
xxx
IP IP Logged
<< Prev Page  of 2
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.