Marshall,
The second question is to enable me to display a running total of 'Ongoing'
costs of all jobs within my database. This would then highlight to the user
costs to date. Is this possible?
KR
S
>>I have a form frmreferb which has a sunbform called frmreferbdetails
>>(Continues Form) on the subform I have a text box called quantity and a
[quoted text clipped - 30 lines]
> each question separately to a specific forum instead of
> crossposting multiple questions to multiple forums.
Marshall Barton - 18 Nov 2007 14:21 GMT
>The second question is to enable me to display a running total of 'Ongoing'
>costs of all jobs within my database. This would then highlight to the user
>costs to date.
For a form, you have to do it in the form's record source
query. Here's an air code example:
SELECT T.id, T.job. T.cost, T.sort, ...,
(SELECT Sum(X.cost)
FROM table As X
WHERE X.job = T.job
And X.sort <= T.sort) As RunTotal
FROM table As T
FYI: a running total query is logically the same as a
ranking query.
A running total in a report is easier because you can use a
text box with the RunningSum property.

Signature
Marsh
MVP [MS Access]