Re: query returning either nothing or multiples of records
- From: "Christopher W via AccessMonster.com" <forum@xxxxxxxxxxxxxxxxx>
- Date: Tue, 16 Aug 2005 04:55:49 GMT
Thank you so much for your help i really do appreciate it and sorry I keep
explaining my self poorly.
I understand that the procedure in identifying the problem is to break it
down and then build it back again piece by piece. Having undertaken this
process I am unable to pinpoint one join.
When the generic asset and transaction table are the only two in the query
the query works fine. However when the other three tables are included, the
relationship between generic assets and transaction tables results in no
records being returned.
Also the link between Transaction and ANZSIC Junction Results in the records
returned being increased from 13 to 23, there are 13 records in ANZSIC
junction and 23 records in transaction and ANZSIC Junction
I have gone through and made sure that all tables have records in pertaining
that are in the other tables and should therefore ensure that something is
always returned from the query.
General Question: Can the inclusion of a table and relationship in the upper
pain of the query screen alter the results of a query even though there are
no fields being used in the lower pain of the query design screen?
Allen Browne wrote:
>Good: the 2-table query works fine.
>
>If the 3-table query returned 21 records because there are 21 records in
>[ANZSIC Junction], then that makes sense.
>
>The approach I am suggesting for you to try is to take a mouthful at a time.
>If adding the 4th table returns no records, then investigate what happens if
>you build up with that table, starting with just 2 tables and watching the
>joins. If it suddenly returns no records, you have identified where the
>error lies.
>
>It is theoretically possible that none of the entries in [ANZSIC Junction]
>have any matching entries related through the other tables, and so there are
>no records to return. It is also possible that the joins between the tables
>(in the upper pane of the query design window) are incorrect, and that
>changing them will solve the problem.
>
>> Thank you both for your responses, I apologise for my ignorance but I have
>> a
>[quoted text clipped - 93 lines]
>>>> the
>>>> records being more than halved.
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-queries/200508/1
.
- Follow-Ups:
- Re: query returning either nothing or multiples of records
- From: Allen Browne
- Re: query returning either nothing or multiples of records
- References:
- query returning either nothing or multiples of records
- From: Christopher W via AccessMonster.com
- Re: query returning either nothing or multiples of records
- From: Allen Browne
- Re: query returning either nothing or multiples of records
- From: Christopher W via AccessMonster.com
- Re: query returning either nothing or multiples of records
- From: Allen Browne
- Re: query returning either nothing or multiples of records
- From: Christopher W via AccessMonster.com
- Re: query returning either nothing or multiples of records
- From: Allen Browne
- Re: query returning either nothing or multiples of records
- From: Christopher W via AccessMonster.com
- Re: query returning either nothing or multiples of records
- From: Allen Browne
- query returning either nothing or multiples of records
- Prev by Date: Re: select greater of 2 values
- Next by Date: RE: Setting up query with multiple data
- Previous by thread: Re: query returning either nothing or multiples of records
- Next by thread: Re: query returning either nothing or multiples of records
- Index(es):
Relevant Pages
|