Start New Discussion Reply to this Discussion Crystal Reports
hi guys,
i have a crystal report the display all transactions done, even the ones that are deleted, and there is a flg to know which ones are deleted.
i need to make a formula to calculate the sum of cash, the problem is that i dont know how to add a where condition not to add the deleted transactions to the totals.
i wrote this in the formula editor
Sum ({Transactions.Trans_Cash})
but this adds also the deleted ones. how can i ignore them. Transactions.Trans_delete_flg
thank you for the help
Related Article: creating bootstrapper for crystal reports runtime
is a VB.NET discussion thread by bilal_fazlani that has 3 replies, was last updated 1 year ago and has been tagged with the keywords: bootstrapper, crystal-reports, visualstudio2010.
Commando123
Newbie Poster
23 posts since Jan 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
you can make a view like this
select i.invoiceNo , (i.amount) as Amount
from invoices i
where i.IsDeleted = 0
union all
select i.invoiceNo , 0 as Amount
from invoices i
where i.IsDeleted = 1
and use this view in your report . this and then just add summary at the end of report of column Amount.
Regards
M.Waqas Aslam
Master Poster
748 posts since Aug 2011
Reputation Points: 50
Solved Threads: 122
Skill Endorsements: 2
© 2013 DaniWeb® LLC
Page rendered in 0.0601 seconds
using 2.64MB