G
Guest
I have created the query below that generates a sum that I am looking for:
SELECT Sum(tblPayments.PaySalDLCDPor) AS SumOfPaySalDLCDPor
FROM tblGrantSum INNER JOIN tblPayments ON tblGrantSum.[DLCDGrant#] =
tblPayments.[DLCDGrant#]
WHERE (((tblPayments.[DLCDGrant#])=[Forms].[frmProgress].[DLCDGrant#]) AND
((tblPayments.[RReq#])<[Me].[RReq#]));
When I run the query, it asks for an RReq#, I supply it and the correct
value is returned.
I would like to include this value on a form which has RReq# as a field on
the form. How do I go about this? If I paste the above SQl in the control
source of the unbound text box, I get a #Name? error. Do I need to add
concantination characters? DLCDGrant# is a string and RReq# is numeric.
Thanks.
Lloyd
SELECT Sum(tblPayments.PaySalDLCDPor) AS SumOfPaySalDLCDPor
FROM tblGrantSum INNER JOIN tblPayments ON tblGrantSum.[DLCDGrant#] =
tblPayments.[DLCDGrant#]
WHERE (((tblPayments.[DLCDGrant#])=[Forms].[frmProgress].[DLCDGrant#]) AND
((tblPayments.[RReq#])<[Me].[RReq#]));
When I run the query, it asks for an RReq#, I supply it and the correct
value is returned.
I would like to include this value on a form which has RReq# as a field on
the form. How do I go about this? If I paste the above SQl in the control
source of the unbound text box, I get a #Name? error. Do I need to add
concantination characters? DLCDGrant# is a string and RReq# is numeric.
Thanks.
Lloyd