Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Erratic Data Return Post Reply Post New Topic
Page  of 2 Next >>
Author Message
FredOh
Newbie
Newbie
Avatar

Joined: 01 Apr 2009
Online Status: Offline
Posts: 18
Quote FredOh Replybullet Topic: Erratic Data Return
     Posted: 12 Jul 2010 at 11:35am

My report seems to be working most of the time but... there are intermittent gaps in the data. I can see the values in the table but they don't appear in the report. I've tried a number of strategies: checking and rechecking the formats, comparing values that do show up with ones that don't, etc.  I can see no obvious pattern to when values don't show. It’s happening with about 2% of the data.

Here's the table structure:  

Table 1 contains ID , Test Dates, Test results

Table 2 contains ID, Attendance Dates, Length of Attendance

 

I've joined the tables by both ID and Dates with  Left Outer Joins.

 

The report returns Test Dates, Test results, the length of attendance on test dates.

 

There are more Attendance Dates than test dates and occasionally test dates that an attendance date isn't recorded for.

 

The report is returning all Test Dates and Results (even those that don't have an attendance date recorded).  But in that 2%, it's not returning the attendance date and length even though I can see it in the table.

 

I've been banging my head against the wall for a few hours now so....

  

Any help would be greatly appreciated. Thanks, Fredoh

 

 

IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 12 Jul 2010 at 12:00pm
If I understood you correctly...
The left outer join from Table1 to table 2 on ID and Date will include only all rows from table 1 but only rows from table 2 where there is a match on both fields. Therefore the 2% missing is becasue the attendance date from table 2 had no match in table 1 and is threfore being omitted from your report.
IP IP Logged
FredOh
Newbie
Newbie
Avatar

Joined: 01 Apr 2009
Online Status: Offline
Posts: 18
Quote FredOh Replybullet Posted: 13 Jul 2010 at 4:29am
There are some values in Table 1 that don't have matching entries in Table 2 and those are showing up as they should with an empty field in the report.
 
But, the 2% actually have a matching entry in Table 2 and those values from Table 2 are not being returned. The report shows the value from Table 1 and an empty field for the Table 2 value.  I have been unable to see any difference between the values that are being returned and those that aren't. 
 
I don't know if this makes any difference but the tables are in an Access Database.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 13 Jul 2010 at 4:30am
are you using a select statement and if so what is it?
IP IP Logged
FredOh
Newbie
Newbie
Avatar

Joined: 01 Apr 2009
Online Status: Offline
Posts: 18
Quote FredOh Replybullet Posted: 13 Jul 2010 at 4:34am
No select statements or supression statements.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 13 Jul 2010 at 4:37am
any grouping or sorting?
IP IP Logged
FredOh
Newbie
Newbie
Avatar

Joined: 01 Apr 2009
Online Status: Offline
Posts: 18
Quote FredOh Replybullet Posted: 13 Jul 2010 at 4:39am
nope.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 13 Jul 2010 at 4:45am

From the description is has to be the value not matching. Either the date or the ID.

If the ID is not numeric one table or the other might have a carriage return or an extra space.
What is the data type for the ID?


Edited by DBlank - 13 Jul 2010 at 4:46am
IP IP Logged
FredOh
Newbie
Newbie
Avatar

Joined: 01 Apr 2009
Online Status: Offline
Posts: 18
Quote FredOh Replybullet Posted: 13 Jul 2010 at 4:55am
ID:
Data type: Number, Field size: Long integer, Format: general number, Decimal place: auto
 
Dates:
Data type: Date/Time, Format: Short Date
 
I've check both tables and these the same on both.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 13 Jul 2010 at 5:13am
very odd....
if you create a view in access and do the same type of out join does the access view omit the same records?
IP IP Logged
Page  of 2 Next >>
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