M
Mercy
Hello,
I have a Union Query, "ALLVendors" that looks like this:
(SELECT ClientPO.Name , POColor.Vendor
From ClientPO, POColor)
UNION
(SELECT ClientPO.Name , POMaterial.Vendor
From ClientPO, POMaterial)
UNION (SELECT ClientPO.Name, Trim.Vendor
From ClientPO, Trim)
ORDER BY Client.Name;
The query works fine!
I want to be able to choose Vendors depending on which
Name is chosen. But when I put the Union Query as the
data source for the Vendor field... Look Up Wizard says
the syntax is wrong in the From field.
So then I tried to just write a seperate query that would
pick the Vendor based on the chosen Name.
This 2nd qry looks like this:
SELECT Vendor
FROM ALLVendors
Where Name = X;
This qry doesn't work. If I don't add in the "where
constraint" it returns all of the Vendors. If I try to
search according to Name, it returns nothing.
Maybe I don't know how unions work? Any ideas on why this
is happening? And how I can fix it?
Thanks!
Mercy
I have a Union Query, "ALLVendors" that looks like this:
(SELECT ClientPO.Name , POColor.Vendor
From ClientPO, POColor)
UNION
(SELECT ClientPO.Name , POMaterial.Vendor
From ClientPO, POMaterial)
UNION (SELECT ClientPO.Name, Trim.Vendor
From ClientPO, Trim)
ORDER BY Client.Name;
The query works fine!
I want to be able to choose Vendors depending on which
Name is chosen. But when I put the Union Query as the
data source for the Vendor field... Look Up Wizard says
the syntax is wrong in the From field.
So then I tried to just write a seperate query that would
pick the Vendor based on the chosen Name.
This 2nd qry looks like this:
SELECT Vendor
FROM ALLVendors
Where Name = X;
This qry doesn't work. If I don't add in the "where
constraint" it returns all of the Vendors. If I try to
search according to Name, it returns nothing.
Maybe I don't know how unions work? Any ideas on why this
is happening? And how I can fix it?
Thanks!
Mercy