Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Selecting records in a sub-report based on... Post Reply Post New Topic
Author Message
Matteo_Luccio
Newbie
Newbie
Avatar

Joined: 30 Jul 2013
Location: United States
Online Status: Offline
Posts: 9
Quote Matteo_Luccio Replybullet Topic: Selecting records in a sub-report based on...
    Posted: 09 Aug 2013 at 8:01am
Full post title: Selecting records in a sub-report based on the value of a record in the main report.

In my main report, I have the field {Job_Operation.Sequence}; the values in that field are a simple numerical sequence: 1, 2, 3, etc. I want to create a sub-report that returns only the record with the next step in the sequence. Something like this:

{Job_Operation.Sequence} [in the sub-report] = {Job_Operation.Sequence} [in the main report] + 1

The main report and the sub-report are linked.

Any suggestions?

Thanks!

Matteo
Matteo Luccio, President
Pale Blue Dot, LLC
Writing about geospatial technologies since 2000
www.palebluedotllc.com
541-543-0525
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 09 Aug 2013 at 11:34am
in the main report create a formula as {Job_Operation.Sequence} + 1
 
link the main report to the sub report on
formula={Job_Operation.Sequence} [in the sub-report]
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.015 seconds.