Milothicus
Registered User.
- Local time
- Today, 23:11
- Joined
- Sep 24, 2004
- Messages
- 134
I need a subquery to do what this query does:
SELECT tblInvs.InvJob, Sum(tblInvs.InvAmt) AS SumOfInvAmt
FROM tblInvs
GROUP BY tblInvs.InvJob;
It groups invoice amounts by job and sums the invoices for each one. the value will be shown on a form, so i need this to be in the recordsource, and i need to be able to edit the other controls on the form.
I'm not sure how to modify this to fit into a subquery, and i'm not sure where to put it, since the value will not be stored in a table anywhere.
any suggestions?
SELECT tblInvs.InvJob, Sum(tblInvs.InvAmt) AS SumOfInvAmt
FROM tblInvs
GROUP BY tblInvs.InvJob;
It groups invoice amounts by job and sums the invoices for each one. the value will be shown on a form, so i need this to be in the recordsource, and i need to be able to edit the other controls on the form.
I'm not sure how to modify this to fit into a subquery, and i'm not sure where to put it, since the value will not be stored in a table anywhere.
any suggestions?