To get the total expense create a field and in the source of the field write
=[Mediaexpenseid]+[Expenseamount]
If the subform is a single form, that has only one data then you can create
a field on the form and the source of that field write
=[BUDGET]-nz(Forms![MainFormName]![SubFormName].Form![Mediaexpenseid] ) -
nz(Forms![MainFormName]![SubFormName].Form![Expenseamount] )
If the sub form is continues form, that has few records, then create in the
footer of the sub form two fields, to sum the expense, make the fields not
visible.
write in the source of each on of them
= sum([Mediaexpenseid])
=sum([Expenseamount])
create a field in the form like mentioned above but write in the source of
the field
=[BUDGET]-nz(Forms![MainFormName]![SubFormName].Form![SumOfMediaexpenseid] )
- nz(Forms![MainFormName]![SubFormName].Form![SumfExpenseamount] )
Savanah said:
Thanks, worled very well.
Now a have anoher question: I have a form(from 1 tables)that shows
STUDYID
STUDYNAME
BUDGET
and a subform (from a table) that shows:
Mediaexpenseid
Studyname
Expenseamount.
I am triyng to habe a field that shows balance and totalexpenseamount,
should I do a combo box???
TIA