Gordon, is this at all helpful? This works as conditional display after trapping all, instead of conditional trapping:
If "Collateral code" is both your field name AND a phrase (sometimes) contained within the field:
I have a strong feeling I'm missing something? :confused:
I like your approach, but I haven't figured out yet how to trap all records due to the changing number of lines. If I try to create a detail template based upon the first record (which is 14 lines), the highlight for the second record (after clicking 'Preview Template') extends past the second record into the third, since Record 2 is only 10 lines. Each record is separated by a blank line so, visually, it is easy to see the separate records, but I haven't yet found how to do that in Monarch. I'm sure it's simple and I'm just missing something obvious.
Your approach will depend on whether your 14 line record is 14 wrapped-lines of detail for a single field, or, 14 lines of many different fields. Also, under Field Properties - Advanced, have you tried either End Field On Blank Field Value, or, End Field When Template Is Encountered?
I'm sending you a private message with a request for a sample of your layout. Hope something from above will work in the meantime.