PeterConnick
Programmer
Crystal Report 8.5
ODBC Oracle Database
I need to get the Departure value and the final Destination value from the travel legs table. Here is an example. If an invoice item contains a stopover on a trip (e.g., Rankin Inlet to Iqaluit to Ottawa), the invoice item will have two travel legs associated with it:
Depart Dest. Leg (this column is available as well)
YRT YFB 1
YFB OTT 2
The report will need to pick up the Departure location of YRT and the Destination of OTT.
I am trying to get this all on one line in the report.
But I am getting something like this.
Ticket Number Passenger Name Depart Dest
1 Paul Smith YRT YFB
1 Paul Smith YFB OTT
I tried grouping on ticket number and moving detail line to group by line but I get this.
Ticket Number Passenger Name Depart Dest
1 Paul Smith YFB OTT
I can get it to work by using previous(Depart) function. But this will not work if the trip has 3 or more legs.
ODBC Oracle Database
I need to get the Departure value and the final Destination value from the travel legs table. Here is an example. If an invoice item contains a stopover on a trip (e.g., Rankin Inlet to Iqaluit to Ottawa), the invoice item will have two travel legs associated with it:
Depart Dest. Leg (this column is available as well)
YRT YFB 1
YFB OTT 2
The report will need to pick up the Departure location of YRT and the Destination of OTT.
I am trying to get this all on one line in the report.
But I am getting something like this.
Ticket Number Passenger Name Depart Dest
1 Paul Smith YRT YFB
1 Paul Smith YFB OTT
I tried grouping on ticket number and moving detail line to group by line but I get this.
Ticket Number Passenger Name Depart Dest
1 Paul Smith YFB OTT
I can get it to work by using previous(Depart) function. But this will not work if the trip has 3 or more legs.