Re: Query Relationship\Multiple Join
From: Carol Giannini (CarolGiannini_at_discussions.microsoft.com)
Date: 12/07/04
- Next message: jacqueline: "Re: Is there a way to separate 1 name field into separate ones..."
- Previous message: Alylia: "RE: Using iif condition"
- In reply to: John Vinson: "Re: Query Relationship\Multiple Join"
- Next in thread: John Vinson: "Re: Query Relationship\Multiple Join"
- Reply: John Vinson: "Re: Query Relationship\Multiple Join"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 7 Dec 2004 09:45:36 -0800
John - I've included the Or Is Null in the expression for Record_1.ID, and
the query still shows only the clients that have two records. I don't know
the answer to this question: Will Is Null include records that don't exist,
or does there have to be a record with nothing in the specified field? In my
project, the second table will never include records where the ID is null;
there will simply be no second record, and I'm wondering if that's the
problem. Thanks *very much* for your help. I'd really like to find a
solution to this issue; it will make a huge difference in the project I'm
working on.
"John Vinson" wrote:
> On Mon, 6 Dec 2004 18:43:02 -0800, "Carol Giannini"
> <CarolGiannini@discussions.microsoft.com> wrote:
>
> >I've joined the second table to the first table twice, using a left outer
> >join, with criteria Record_1.ID > Record.ID. This works great *IF* a client
> >has two entries in the second table. Queries on clients with no entries or
> >one entry don't work. Can this be done this way? What am I missing? TIA.
>
> If Record_1.ID might not exist, you need to allow for the possibility
> that it is NULL instead of greater than Record.ID:
>
> Record_1.ID > Record.ID OR Record_1.ID IS NULL
>
>
> John W. Vinson[MVP]
> Join the online Access Chats
> Tuesday 11am EDT - Thursday 3:30pm EDT
> http://community.compuserve.com/msdevapps
>
- Next message: jacqueline: "Re: Is there a way to separate 1 name field into separate ones..."
- Previous message: Alylia: "RE: Using iif condition"
- In reply to: John Vinson: "Re: Query Relationship\Multiple Join"
- Next in thread: John Vinson: "Re: Query Relationship\Multiple Join"
- Reply: John Vinson: "Re: Query Relationship\Multiple Join"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|