Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Formula

Status
Not open for further replies.

SaiCrystal

Programmer
Jul 17, 2012
5
US
Hi All,

My report has the following data:

Name ClaimNumber PaymentDate Status
A 1 1/1/2009 Adjusted
A 1 1/1/2009 Paid




I need a formula for:

If Name = Name and
ClaimNumber = ClaimNUmber and
PaymentDate = PaymentDate

then Status where Paid replace with Adjusted.


Expected Result:

Name ClaimNumber PaymentDate Status
A 1 1/1/2009 Adjusted



Please Help. Thanks
 
I do not have crystal in front of me, so apologize if i have any typos or missed something, but maybe something like this:

group on Claim Number, then on Status (sorted ascending)

//{@adj}
IF onfirstrecord=TRUE
THEN {table.Status}
ELSE
(
IF ({table.name}=previous{table.name}
AND
{table.Claimnumber}=previous{table.Claimnumber}
AND
{table.PaymentDate}=Previous{table.paymentdate}
AND
{table.Status}='Paid')
THEN 'Adjusted'
ELSE {table.status}
)
 
Thank you so much.
I really appreciate your help.
It worked.
 
glad i could help....and on a zombie-brained friday afternoon at that! hehehe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top