pluke
pluke

Reputation: 4346

crystal reports suppress element based on last item in report

I'm creating a sub report and I want lines between the data items like so:

  Main report
       sub item 1
       ----------
       sub item 2
       ----------
       sub item 3
       ----------
       sub item 4
       ----------
  /Main report

I'd like to make it a little neater by suppressing the line on the last item of the sub report, like so:

  Main report
       sub item 1
       ----------
       sub item 2
       ----------
       sub item 3
       ----------
       sub item 4
  /Main report

I'd like the ---------- to be suppressed when last item in subreport

Any idea what the equation is

Upvotes: 0

Views: 603

Answers (2)

Beth
Beth

Reputation: 9607

Check out the variable named OnLastRecord here

Upvotes: 2

Ryan
Ryan

Reputation: 7287

If the items are rows within a single subreport then you can just use the suppression formula: onlastrecord

Upvotes: 1

Related Questions