J
Joseph Greenberg
I have a membership database with tables I have inherited for which I can't
change the structure.
Table 1 essentially the family membership unit information - member1,
member2 (assume most are married), address, contact info, etc. It includes a
familyname, member1name, member2name, and famno (famno is the overall key).
Table 2 has member details, but doesn't have first names of member1 and
member 2, it only has first names of kids. This is also where birthday
resides (as you would expect, this is where the individual data is).
I have a query that is pulling records based on birthday. I would like it to
show me ONLY the member name which is relevant to the birthday (right now I
can't figure out how to not get both names). So if I select all those under
40, the record in the query shows me both member1name and member2name. But
since the record is pullnig based on birthday in Table 2, theoretically
there should be a way to show only the name of the member with the birthday
that fits the criteria.
There is a field in Table 2 which tells me if it's a member1, member2, or
child. But i can't figure out how to tell the query that if it's a member 1
then give me only member 1 name on the output data, if it's a member 2 only
give me the member 2 name, or if it's member 3 then give me the first name
data.
Any thoughts?
change the structure.
Table 1 essentially the family membership unit information - member1,
member2 (assume most are married), address, contact info, etc. It includes a
familyname, member1name, member2name, and famno (famno is the overall key).
Table 2 has member details, but doesn't have first names of member1 and
member 2, it only has first names of kids. This is also where birthday
resides (as you would expect, this is where the individual data is).
I have a query that is pulling records based on birthday. I would like it to
show me ONLY the member name which is relevant to the birthday (right now I
can't figure out how to not get both names). So if I select all those under
40, the record in the query shows me both member1name and member2name. But
since the record is pullnig based on birthday in Table 2, theoretically
there should be a way to show only the name of the member with the birthday
that fits the criteria.
There is a field in Table 2 which tells me if it's a member1, member2, or
child. But i can't figure out how to tell the query that if it's a member 1
then give me only member 1 name on the output data, if it's a member 2 only
give me the member 2 name, or if it's member 3 then give me the first name
data.
Any thoughts?