SELECT *
FROM [Res-project engineer]
UNION
SELECT *
FROM [Res-mech design]
UNION
SELECT *
FROM [Res-electrical design];
Change your source query to
SELECT Ideas.*
FROM Ideas
WHERE (((Ideas.[Mechanical Design].Value)=[Contacts].[ID]));
Although I don't understand why you don't just use something along the lines
of the following and skip the Union query entirely.
SELECT Ideas.*
FROM Ideas
WHERE Ideas.[Mechanical Design].Value=[Contacts].[ID]
OR Ideas.[Project Design].Value=[Contacts].[ID]
Or Ideas.[Electrical Design].Value=[Contacts].[ID]
Finally, I must confess to some confusion on your SQL
Contacts.Id and Ideas.[Mechanical Design].Value
I would normally expect to see
[Forms]![Contacts]![Id] as a reference to a control on an open form and
Ideas.[Mechanical Design] as a (table + Field Name)

Signature
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
.
> hi,
>
[quoted text clipped - 11 lines]
> mfG
> --> stefan <--
mbaycura - 08 Nov 2007 19:50 GMT
Your SQL statement suggestion to avoid the union altogether was a great idea,
thanks! I had tried that line of thought initially, but I must have missed
something in my syntax or implimentation because I would get huge tables of
every combination and permutation of .values giving thousands of cases for
just a couple records.
I'm not too experienced in databases or access so I have some trouble
getting concept into implementaions.
and to that end, I miss-spoke in my original question, Contacts is the
table, I haven't integrated the query into the form yet.
thanks again.
> Although I don't understand why you don't just use something along the lines
> of the following and skip the Union query entirely.
[quoted text clipped - 12 lines]
> Ideas.[Mechanical Design] as a (table + Field Name)
> --