using Crystal Version 10.
Here is the typical scenario:
Main report contains a sub report. Main passes multiple ids to process the sub report.
Sub report uses stored proc to get data from SQL Server database. Stored Proc gets the data in following format from the database for ID 101:
ID FName LName City State Zip
101 Bob Builder New York NY 34567
101 Bob Builder Long Island NY 34567
Now, I need to compare column values among rows to see if anything got changed. In the above case, City name changed from New York to Long Island. My sub report then should display 'City changed from 'New York' to 'Long Island' as follows:
CUSTOMER RECORDS [Note:- this is the sub report header]
City name changed from 'New York' to 'Long Island'
--------------------------------------------------------
It is not over yet, in the next iteration, main report passes id 102 into sub report and the data looks like follows:
ID FName LName City State Zip
102 Sarah Miller Omaha NE 34567
102 Sarah Miller New York NY 34567
This time sub report should display the following:
'City changed from Omaha to New York'
'State changed from NE to NY'
-------------------------------------------------------
Problem is I don't want the header to get displayed again Since it is already being displayed for ID 101.
Also, if nothing changed on both above IDs, the header should be completely suppressed.
Please help, how to do this.
Thanks.
Sum.
Here is the typical scenario:
Main report contains a sub report. Main passes multiple ids to process the sub report.
Sub report uses stored proc to get data from SQL Server database. Stored Proc gets the data in following format from the database for ID 101:
ID FName LName City State Zip
101 Bob Builder New York NY 34567
101 Bob Builder Long Island NY 34567
Now, I need to compare column values among rows to see if anything got changed. In the above case, City name changed from New York to Long Island. My sub report then should display 'City changed from 'New York' to 'Long Island' as follows:
CUSTOMER RECORDS [Note:- this is the sub report header]
City name changed from 'New York' to 'Long Island'
--------------------------------------------------------
It is not over yet, in the next iteration, main report passes id 102 into sub report and the data looks like follows:
ID FName LName City State Zip
102 Sarah Miller Omaha NE 34567
102 Sarah Miller New York NY 34567
This time sub report should display the following:
'City changed from Omaha to New York'
'State changed from NE to NY'
-------------------------------------------------------
Problem is I don't want the header to get displayed again Since it is already being displayed for ID 101.
Also, if nothing changed on both above IDs, the header should be completely suppressed.
Please help, how to do this.
Thanks.
Sum.