G
Guest
I have a subform which I want to show grant money received and spent and a
running balance. I have been able to accomplish this on a report using the
CCur function.
On the subform (based on a table Accountability) I have an Amount field in
which I enter the amount either positive or negative. If the Amount is
positive it also shows up in a calculated field labeled Income; if the Amount
is negative it shows up in a calculated field labeled Expense. Both the
Income and Expense field are locked. I have tried using a DSum function in a
calculated Balance field but to date have not been successful.
I have never used this function before so my Syntax may be faulty. I have
tried the following:
=DSum("[Amount]","[Accountability]",)
In the above Amount is the field (positive or negative) Accountability is
the name of the underlying table of the subform. I have not included a third
piece of the argument because I am not looking for a particular category –
e.g. what was spent on stationery.
Can anyone solve my riddle? Any help much appreciated.
Mary
running balance. I have been able to accomplish this on a report using the
CCur function.
On the subform (based on a table Accountability) I have an Amount field in
which I enter the amount either positive or negative. If the Amount is
positive it also shows up in a calculated field labeled Income; if the Amount
is negative it shows up in a calculated field labeled Expense. Both the
Income and Expense field are locked. I have tried using a DSum function in a
calculated Balance field but to date have not been successful.
I have never used this function before so my Syntax may be faulty. I have
tried the following:
=DSum("[Amount]","[Accountability]",)
In the above Amount is the field (positive or negative) Accountability is
the name of the underlying table of the subform. I have not included a third
piece of the argument because I am not looking for a particular category –
e.g. what was spent on stationery.
Can anyone solve my riddle? Any help much appreciated.
Mary