Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Global Variables Post Reply Post New Topic
Author Message
LarryM
Newbie
Newbie


Joined: 14 Jun 2008
Location: United States
Online Status: Offline
Posts: 8
Quote LarryM Replybullet Topic: Global Variables
    Posted: 14 Jun 2008 at 1:42pm

Hi,

 
I am using Crystal Reports 9.0
 
I have three sql tables.  MonthlyStatus, DailyStatus, and FlightLog
 
In the report I am puting these three table together with a join with aircraftkey.
 
The DailyStatus table has data every day and the Flightlog has many transaction per day and some days no data.
 
So we are looking at a One to many.
 
Example:
 
Date              Model   Tail No     Flt Hrs   Total Hrs  Landings  Tol Landings
03/01/2005    F-35     1234          3.5     4324.5           2          3212
03/02/2005    F-35     1234          2.0     4326.5           2          3214
03/03/2005    F-35     1234          0.0         0.0             0             0
03/04/2005    F-35     1234          2.0     4328.5           2          3216
 
I am grouping on the aircraftkey then also grouping on Date by month then grouping by date then grouping by flightlog date then suppressing the detail.
 
The reason in the example the date on 03/03/2005 the flightlog did not have any transactions.
 
Also the flightlog  table looks like this
 
Date                Flt Hrs   Tot Hrs   Landings
03/01/2005      0.5       4321.5     2
03/01/2005      1.0       4324.5     3
03/01/2005      1.5       4323.5     2
03/01/2005      0.5       4322.0     1
03/02/2005      2.0       4326.5     2
03/04/2005      0.5       4327.0     1
03/04/2005      1.5       4328.5     1
 
In the flightlog group I group on date and sum the Flt Hrs and max the Tot Hrs and sum the Landings
 
Date                Flt Hrs   Tot Hrs   Landings
03/01/2005      3.5        4324.5    8
03/02/2005      2.0        4326.5    2
03/04/2005      2.0        4328.5    2
 
 
The monthlystatus has the following:
 
Date                         Total Hrs            Tot Landings
02/28/2005             4321.0                3204
03/31/2005             4410.5                3315
 
 
Would like it to be like this:
 
                                                 Begin Hrs 4321.0     Begin Landing 3204
 
Date              Model   Tail No     Flt Hrs   Total Hrs  Landings  Tol Landings
03/01/2005    F-35     1234          3.5     4324.5           8          3212
03/02/2005    F-35     1234          2.0     4326.5           2          3214
03/03/2005    F-35     1234          0.0     4326.5           0          3214
03/04/2005    F-35     1234          2.0     4328.5           2          3216
 
 
I would like to continue the Total Hrs and the Tol Landing when the flight log does not have a record for that date no matter if it is at the first of the month or the middle of the month
 
 
Please help
Thanks in advance
LarryM
 
 
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.032 seconds.