Sign Up |  Live StatsLive Stats    Articles 35,345| Comments 159,791| Members 17,821, Newest cdotkhn| Online 209
Home Contact
 (Forgotten?): 
    Sikhism

   
                                                                     Your Banner Here!    

Sikh Philosophy Network » Sikh Philosophy Network » Current Affairs » Information Technology » Report returning fewer results than underlying query

Report returning fewer results than underlying query

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 400 USD, Received: 35 USD (9%)
Please Donate...
Related Topics...
Thread Thread Starter Forum Replies Last Post
Using last function against date returning results based on key keliie@yahoo.com Information Technology 3 28-Jul-2006 08:38 AM
Too many Results in a report Teresa Information Technology 0 28-Jul-2006 08:37 AM
In a query how do I get it to total my results Lisa Information Technology 3 28-Jul-2006 08:35 AM
Query results in messagebox Wendy Information Technology 5 28-Jul-2006 08:19 AM
Need help on query - average of most recent 25 results Philip Lo Information Technology 3 27-Oct-2005 08:59 AM


Tags
report, returning, fewer, results, than, underlying, query
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 08-Nov-2005, 12:53 PM
Seth C. Triggs's Avatar Seth C. Triggs
Guest
 
Posts: n/a
   
   
Report returning fewer results than underlying query

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
Third try sending this message.

I have a report that is returning only 2890 results, while its
underlying query returns 16,590. Is there anything in the Report
settings that can cause this sort of thing to happen? This is a customer
database, so each page in the report has in its header the customer info
and the detail section has the customer's service history.

I've searched for record limiting options and things like that and can't
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/6897-report-returning-fewer-results-than-underlying.html
figure out what's causing this. Any ideas out there?


Thanks in advance,


Seth C Triggs
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6897
--
______

Seth C. Triggs The World According to Lefty
P.O. Box 616 http://www.svamcentral.org
Buffalo NY 14205 AOL IM- SethTriggs • ICQ- 8365635

"Don't drink and park, accidents cause people." — Unknown



 
Do share your immediate thoughts or reactions on this issue? We value your views! Login Now! or Sign Up Today! to share your views with us.. Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-Nov-2005, 12:53 PM
tina's Avatar tina
Guest
 
Posts: n/a
   
   
Re: Report returning fewer results than underlying query

> I have a report that is returning only 2890 results, while its
> underlying query returns 16,590.


what do you mean by "2890 results"? do you mean 2890 *pages* in the report?
are there 2890 customers, with multiple service records that have a combined
total 16,590?


"Seth C. Triggs" wrote in message
news:QbVbf.1879$Y97.1499@trndny05...
> Third try sending this message.
>
> I have a report that is returning only 2890 results, while its
> underlying query returns 16,590. Is there anything in the Report
> settings that can cause this sort of thing to happen? This is a customer
> database, so each page in the report has in its header the customer info
> and the detail section has the customer's service history.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6897
>
> I've searched for record limiting options and things like that and can't
> figure out what's causing this. Any ideas out there?
>
>
> Thanks in advance,
>
>
> Seth C Triggs
> --
> ______
>
> Seth C. Triggs The World According to Lefty
> P.O. Box 616 http://www.svamcentral.org
> Buffalo NY 14205 AOL IM- SethTriggs • ICQ- 8365635
>
> "Don't drink and park, accidents cause people." — Unknown



Reply With Quote
  #3 (permalink)  
Old 08-Nov-2005, 12:53 PM
Seth C. Triggs's Avatar Seth C. Triggs
Guest
 
Posts: n/a
   
   
Re: Report returning fewer results than underlying query

tina wrote:

>>I have a report that is returning only 2890 results, while its
>>underlying query returns 16,590.

>
>
> what do you mean by "2890 results"? do you mean 2890 *pages* in the report?
> are there 2890 customers, with multiple service records that have a combined
> total 16,590?


The previous tries to send the message vanished.

There are two tables that are joined to create the "List all Customers"
report: Customers and Service Details.

There are 11,351 records in the Customers table. Each one is an
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6897
individual, unique customer. There are 16,577 records in the Service
Details table. Each record is a unique service appointment, keyed to the
customer's street address. (Not my schema!)

The underlying query that combines them correctly gives me 16,564
records (this discrepancy occurs because of blank address fields for
some service records, as well as misspellings of a handful of names)

What is supposed to happen is that all 11,351 customers should have a
page on the List All Customers report. However, this is not happening,
there are only 2,890 displayed. I don't know what sort of interaction
happens between the query and the Report that can cause the Report to
display radically different results.

By the way, the report is set up where the page header has the record
from the Customer table, and the Details section has all of the records
matching that customer from the Service Details table. Each customer
should only have one page. I have verified that most of the customers
are missing. But I am not sure why.

Thank you,


Seth
--
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6897
______

Seth C. Triggs The World According to Lefty
P.O. Box 616 http://www.svamcentral.org
Buffalo NY 14205 AOL IM- SethTriggs • ICQ- 8365635

"Don't drink and park, accidents cause people." — Unknown
Reply With Quote
  #4 (permalink)  
Old 08-Nov-2005, 12:53 PM
Allen Browne's Avatar Allen Browne
Guest
 
Posts: n/a
   
   
Re: Report returning fewer results than underlying query

Seth, *what* records are missing?

Does the report go as far as (say) D, and then all the remaining customers
are missing?

Is it the customers who have never had an entry in the Service Details that
are missing?

Are any criteria being applied in the query?

Is the report being opened programmatically with a WhereCondition?

A corrupt index can cause what you describe (generally fixed by Tools |
Dataase Utilities | Compact/Repair), but I suspect there is something much
more basic going on here. A couple of common causes are discussed in this
article:
The Query Lost My Records! (Nulls)
at:
http://allenbrowne.com/casu-02.html

If these tables are joined just on address matches and without referential
integrity, just about anything could go wrong.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Seth C. Triggs" wrote in message
news:4DVbf.577$PZ6.435@trndny07...
> tina wrote:
>
>>>I have a report that is returning only 2890 results, while its
>>>underlying query returns 16,590.

>>
>>
>> what do you mean by "2890 results"? do you mean 2890 *pages* in the
>> report?
>> are there 2890 customers, with multiple service records that have a
>> combined
>> total 16,590?

>
> The previous tries to send the message vanished.
>
> There are two tables that are joined to create the "List all Customers"
> report: Customers and Service Details.
>
> There are 11,351 records in the Customers table. Each one is an
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6897
> individual, unique customer. There are 16,577 records in the Service
> Details table. Each record is a unique service appointment, keyed to the
> customer's street address. (Not my schema!)
>
> The underlying query that combines them correctly gives me 16,564 records
> (this discrepancy occurs because of blank address fields for some service
> records, as well as misspellings of a handful of names)
>
> What is supposed to happen is that all 11,351 customers should have a page
> on the List All Customers report. However, this is not happening, there
> are only 2,890 displayed. I don't know what sort of interaction happens
> between the query and the Report that can cause the Report to display
> radically different results.
>
> By the way, the report is set up where the page header has the record from
> the Customer table, and the Details section has all of the records
> matching that customer from the Service Details table. Each customer
> should only have one page. I have verified that most of the customers are
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6897
> missing. But I am not sure why.
>
> Thank you,
>
>
> Seth
> --
> ______
>
> Seth C. Triggs The World According to Lefty
> P.O. Box 616 http://www.svamcentral.org
> Buffalo NY 14205 AOL IM- SethTriggs • ICQ- 8365635
>
> "Don't drink and park, accidents cause people." — Unknown



Reply With Quote
  #5 (permalink)  
Old 08-Nov-2005, 12:53 PM
Seth C. Triggs's Avatar Seth C. Triggs
Guest
 
Posts: n/a
   
   
Re: Report returning fewer results than underlying query

Allen Browne wrote:

> Seth, *what* records are missing?
>
> Does the report go as far as (say) D, and then all the remaining customers
> are missing?


No, it does return an A-Z condition (though for example the last
customer in the Customers table does not appear in the "list all" report.

> Is it the customers who have never had an entry in the Service Details that
> are missing?


No, everyone has a Service Detail. It contains records over numerous years.

> Are any criteria being applied in the query?


No criteria in the list all. It's simply just "list all"
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6897

> Is the report being opened programmatically with a WhereCondition?


No, just a simple open.

> A corrupt index can cause what you describe (generally fixed by Tools |
> Dataase Utilities | Compact/Repair), but I suspect there is something much
> more basic going on here. A couple of common causes are discussed in this
> article:


I'll take a look at the index. I had run JetComp before and that removed
some particularly annoying errors about the tables. I will try doing the
Compact/Repair too maybe. But first I will look at your page.


> The Query Lost My Records! (Nulls)
> at:
> http://allenbrowne.com/casu-02.html
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6897
>
> If these tables are joined just on address matches and without referential
> integrity, just about anything could go wrong.


That's what I was thinking. But I'm not sure. Will have a look at your
page! Thank you!

-Seth

--
______

Seth C. Triggs The World According to Lefty
P.O. Box 616 http://www.svamcentral.org
Buffalo NY 14205 AOL IM- SethTriggs • ICQ- 8365635

"Don't drink and park, accidents cause people." — Unknown
Reply With Quote
  #6 (permalink)  
Old 08-Nov-2005, 12:53 PM
Seth C. Triggs's Avatar Seth C. Triggs
Guest
 
Posts: n/a
   
   
Re: Report returning fewer results than underlying query

  Donate Today!  
Seth C. Triggs wrote:

I was able to increase the number of records displayed to about 7,571 by
moving the customer details to the "Last Name Header", which seems to be
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6897
built into this particular report. Perhaps it's from one of the groups
in the database. But 7,571 is still far less than what I am looking for.
The names are beginning to match up a little more with what's seen in
the Customer Table, however, which is good. And the report is at least
giving the proper behavior.

-Seth

> There are two tables that are joined to create the "List all Customers"
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6897
> report: Customers and Service Details.
>
> There are 11,351 records in the Customers table. Each one is an
> individual, unique customer. There are 16,577 records in the Service
> Details table. Each record is a unique service appointment, keyed to the
> customer's street address. (Not my schema!)
>
> The underlying query that combines them correctly gives me 16,564
> records (this discrepancy occurs because of blank address fields for
> some service records, as well as misspellings of a handful of names)
>
> What is supposed to happen is that all 11,351 customers should have a
> page on the List All Customers report. However, this is not happening,
> there are only 2,890 displayed. I don't know what sort of interaction
> happens between the query and the Report that can cause the Report to
> display radically different results.
>
> By the way, the report is set up where the page header has the record
> from the Customer table, and the Details section has all of the records
> matching that customer from the Service Details table. Each customer
> should only have one page. I have verified that most of the customers
> are missing. But I am not sure why.
>
> Thank you,
>
>
> Seth



--
______

Seth C. Triggs The World According to Lefty
P.O. Box 616 http://www.svamcentral.org
Buffalo NY 14205 AOL IM- SethTriggs • ICQ- 8365635

"Don't drink and park, accidents cause people." — Unknown
Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Gurbani Jukebox
Listen to Gurbani while surfing SPN!
» Active Discussions
sikhism need urgent advice.......
Today 10:03 AM
7 Replies, 87 Views
sikhism Who is "Mohan"?
Today 08:46 AM
22 Replies, 348 Views
sikhism How important is Matha...
Today 08:12 AM
59 Replies, 1,041 Views
sikhism ਨਾਮਾ
Today 06:37 AM
2 Replies, 53 Views
sikhism Sikh Diamonds Video...
Today 04:23 AM
6 Replies, 120 Views
sikhism Are Creator and Creation...
Today 01:30 AM
44 Replies, 2,837 Views
sikhism Herman Hesse,...
Today 00:54 AM
13 Replies, 230 Views
sikhism On a Scale of Most...
Yesterday 21:42 PM
30 Replies, 1,277 Views
sikhism I became victim by...
Yesterday 19:50 PM
0 Replies, 46 Views
sikhism Sikh Books downloads
Yesterday 15:39 PM
2 Replies, 66 Views
sikhism Salok Sheikh Farid ji...
Yesterday 09:35 AM
0 Replies, 47 Views
sikhism In Punjab, three farmers...
Yesterday 05:36 AM
0 Replies, 49 Views
sikhism Supernatural Sikhs, what...
Yesterday 03:45 AM
19 Replies, 416 Views
sikhism Sukhmani Sahib Astpadi...
26-May-2012 22:57 PM
0 Replies, 51 Views
Do You Think You Are...
26-May-2012 09:59 AM
94 Replies, 8,258 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.2

All times are GMT +6.5. The time now is 10:33 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.46971 seconds with 30 queries