Hello
Hoping someone can help me with this, I am on Crystal 8.5 using an Access 2000 database.
I am writing a report on donations my organisation has received this financial year (Aug 2008 to July 2009).
The report is grouped first by Gift Designation (sponsorship, annual fund, legacy, matched gifts)
and then by {GfCnBio.GfCnBio_Import_ID} so that people with multiple gifts during the year are grouped together.
I then need to display the gifts in four columns:
Cash (money in)
Pledge (promise of money to come)
TY Paid Pledge (a pledge made this financial year and paid in this financial year)
PY Paid Pledge (a pledge made in a previous financial year but paid this year)
The problem I have is with the last two columns. In the data file they both have the same gift type so I cannot simply do a formula of
if {Gf.Gf_Type} = "Pay-Cash" then ToNumber({Gf.Gf_Amount})
Instead I tried
if (Previous({GfCnBio.GfCnBio_Import_ID}) = {GfCnBio.GfCnBio_Import_ID}
and Previous({Gf.Gf_Type}) = "Pledge")
and {Gf.Gf_Type} = "Pay-Cash"
then {Gf.Gf_Amount} else $0.00
This is because if the donor is paying a pledge made this year they will have two records (the pledge and the payment). If they are paying a previous years pledge they will only have one.
But (as I found from reading this forum) I cannot insert a summary on this because I am using 'previous()'
Can anyone think of a different way I could approach this?
Hope it makes sense,
Peter
Hoping someone can help me with this, I am on Crystal 8.5 using an Access 2000 database.
I am writing a report on donations my organisation has received this financial year (Aug 2008 to July 2009).
The report is grouped first by Gift Designation (sponsorship, annual fund, legacy, matched gifts)
and then by {GfCnBio.GfCnBio_Import_ID} so that people with multiple gifts during the year are grouped together.
I then need to display the gifts in four columns:
Cash (money in)
Pledge (promise of money to come)
TY Paid Pledge (a pledge made this financial year and paid in this financial year)
PY Paid Pledge (a pledge made in a previous financial year but paid this year)
The problem I have is with the last two columns. In the data file they both have the same gift type so I cannot simply do a formula of
if {Gf.Gf_Type} = "Pay-Cash" then ToNumber({Gf.Gf_Amount})
Instead I tried
if (Previous({GfCnBio.GfCnBio_Import_ID}) = {GfCnBio.GfCnBio_Import_ID}
and Previous({Gf.Gf_Type}) = "Pledge")
and {Gf.Gf_Type} = "Pay-Cash"
then {Gf.Gf_Amount} else $0.00
This is because if the donor is paying a pledge made this year they will have two records (the pledge and the payment). If they are paying a previous years pledge they will only have one.
But (as I found from reading this forum) I cannot insert a summary on this because I am using 'previous()'
Can anyone think of a different way I could approach this?
Hope it makes sense,
Peter