1 reply
by spiderdad
Verify that your SQL works outside of Crystal (maybe you already tried this). This might help find the problem.
To cut the duplication, suppress the detail print but save image=1 in the detail section. Then group & report by property at the group footer level only w/ the saved image=1. Below is the technique I used where I saved dates at detail and reported at group footer :
Collect data in detail for footer
?@init? ------------------ formula field in report header section-----------
global stringvar s;
global stringvar p;
?@display5? ------------------ formula field in detail section----------
WhilePrintingRecords;
global stringvar p;
?@display6? ------------------ formula field in detail section-----------
WhilePrintingRecords;
global stringvar s;
?@read5-6data? ------------------ formula field in detail section--------------
whileprintingrecords;
global stringVar s;
global stringvar p;
if {GET_CQ0701_PKG_P_FETCH_CONTRACT_AMEND_ZERO.DATE_TYPE_CODE} = "6" then
s:=s+" "+totext({GET_CQ0701_PKG_P_FETCH_CONTRACT_AMEND_ZERO.TRACKING_DATE})
else
if {GET_CQ0701_PKG_P_FETCH_CONTRACT_AMEND_ZERO.DATE_TYPE_CODE} = "5" then
p:=p+" "+totext({GET_CQ0701_PKG_P_FETCH_CONTRACT_AMEND_ZERO.TRACKING_DATE});
@CNTY BOARD DATE -------------------- Formula Field in Rpt Footer
if Length ({@?@display6?}) > 1
then
Date({@?@display6?})
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending