B
Bill Stanton
In the following UNION query, the 2nd of three selects
does not seem to take effect. I.e., nothing is returned from
the select from table "DonRegInd". However, if I isolate
the second select and run it be itself, the appropriate
record(s) are returned.
I can't tell from the HELP text if I need a different syntax
when I have more than two tables in a UNION operation.
Thanks,
Bill
SELECT [DonRegFam].[FundID],[Funds].[FundTitle],[DOE],[Amount],[Type]
FROM [DonRegFam] INNER JOIN
[Funds] ON [DonRegFam].[FundID] = [Funds].[FundID]
UNION ALL
SELECT [DonRegInd].[FundID],[Funds].[FundTitle],[DOE],[Amount],[Type]
FROM [DonRegInd] INNER JOIN
[Funds] ON [DonRegInd].[FundID] = [Funds].[FundID]
UNION ALL
SELECT [DonUnReg].[FundID],[Funds].[FundTitle],[DOE],[Amount],[Type]
FROM [DonUnReg] INNER JOIN
[Funds] ON [DonUnReg].[FundID] = [Funds].[FundID];
does not seem to take effect. I.e., nothing is returned from
the select from table "DonRegInd". However, if I isolate
the second select and run it be itself, the appropriate
record(s) are returned.
I can't tell from the HELP text if I need a different syntax
when I have more than two tables in a UNION operation.
Thanks,
Bill
SELECT [DonRegFam].[FundID],[Funds].[FundTitle],[DOE],[Amount],[Type]
FROM [DonRegFam] INNER JOIN
[Funds] ON [DonRegFam].[FundID] = [Funds].[FundID]
UNION ALL
SELECT [DonRegInd].[FundID],[Funds].[FundTitle],[DOE],[Amount],[Type]
FROM [DonRegInd] INNER JOIN
[Funds] ON [DonRegInd].[FundID] = [Funds].[FundID]
UNION ALL
SELECT [DonUnReg].[FundID],[Funds].[FundTitle],[DOE],[Amount],[Type]
FROM [DonUnReg] INNER JOIN
[Funds] ON [DonUnReg].[FundID] = [Funds].[FundID];