if you set a template on the footer, and then set the Page Header to be an Append, and set it to be cleared by the Footer, you should be able to distinguish between "good" and "bad" detail records that appear on the sa me page but separated by the footer.
If you can post a sample here between CODE tags, I'm sure that there'll be a few of us able to help in more detail.
I never ended up using this code, and evidently I got rid of the models. Now I need to do this exact thing again, stop getting data based on the detail or a footer. And I forget how I did it and can't figure it out. So basically I have a trap on the DPR# line and Detail on the TRAN CODE REASON CODE lines. After the detail, I want to stop trapping data until it finds another Header line. I can't get the following to format HTML wise, but if you cut and paste it comes out like it is in the report.
DPR# BC460-13 ASSN 45 CORP XXXXXX INST BANKCARD DAILY ACTIVITY JOURNAL BY BIN AS OF 01/11/15 PAGE 2574
BIN 123456 XXXXXXXX XXXXXXXXX XXX RUN DATE 01/11/15
TOTAL OUTSTANDING BALANCES - BEGINNING $1,926,022.02
RECOVERY OUTSTANDING BALANCES - BEGINNING $0.00
NON-SYSTEM GENERATED TRANSACTIONS - POSTED
TRAN CODE REASON CODE DESCRIPTION COUNT $ AMOUNT
05 00 SALES DRAFT 155 $9,064.58
06 00 CREDIT VOUCHER 10 $314.52-
07 20 CASH ADVANCE 1 $300.00
07 23 LETTERCHECK 1 $70.00
65 01 PAYMENT - THANK YOU 1 $150.00-
65 35 ON-LINE PAYMENT-THANK YO 2 $1,003.15-
65 44 ELECTRONIC PMT--THANK YO 1 $45.00-
TOTAL NON-SYSTEM GENERATED TRANSACTIONS - POSTED 171 $7,921.91
TOTAL NON-SYSTEM GENERATED TRANSACTIONS 171 $7,921.91
BIN TOTAL TRANSACTIONS - POSTED 171 $7,921.91
BIN TOTAL TRANSACTIONS - UNPOSTED 0 $0.00
BIN TOTAL TRANSACTIONS - RECOVERY 0 $0.00
BIN TOTAL TRANSACTIONS 171 $7,921.91
I find it helps to find something that appears at the bottom of the section of detail - like the TOTAL NON-SYSTEM GENERATED TRANSACTIONS - POSTED line - and use that as a Footer. Then if Cleared By doesn't do the trick, it's maybe possible to filter the results in the table based on the values of the Footer fields.
Hope this helps,