I need to bind the Control Source of a text box on the SUM of [Amount] based on the query below. What do I add to the SQL shown below such that I can use the query name as the Control Source of a text box.
Code:
SELECT ALL
[DonRegFam].[FundID],[Funds].[FundTitle],[Funds].[AccountNo],[Funds].[Source],[DOE],[Amount],[Type]
FROM [DonRegFam] INNER JOIN
[Funds] ON [DonRegFam].[FundID] = [Funds].[FundID]
Where DOE = DOEparms() AND Type = 3
UNION ALL SELECT
[DonRegInd].[FundID],[Funds].[FundTitle],[Funds].[AccountNo],[Funds].[Source],[DOE],[Amount],[Type]
FROM [DonRegInd] INNER JOIN
[Funds] ON [DonRegInd].[FundID] = [Funds].[FundID]
Where DOE = DOEparms() AND Type = 3
UNION ALL SELECT
[DonUnReg].[FundID],[Funds].[FundTitle],[Funds].[AccountNo],[Funds].[Source],[DOE],[Amount],[Type]
FROM [DonUnReg] INNER JOIN
[Funds] ON [DonUnReg].[FundID] = [Funds].[FundID]
Where DOE = DOEparms() AND Type = 3;