J
Jonas
I want to use the Dsum function on a continuous subform. I want to
get a sum of a field in the subform based on a unique ID in the main
form. I know that I have the main form and the subform linked
properly. I have done this before but I can't figure out how to do it
now. Do I need to put the Dsum function in the footer of the
continuous subform? Below are my fields, tables and forms.
Main form: frmPayments
Subform: frmEnterCashBills
Main table: tblPayments
sub table: tblCashBillsEntry
I tried to use the following in the footer of the subform to see if I
could get anything but an error or a #name but I couldn't get it to
work. I have a field in the main fom that refers to the field in the
footer of the subform
=dsum("tblCashEntryBillAmount","tblCashBillsEntry","frmCashEntryUnIDfrPmts='29""
get a sum of a field in the subform based on a unique ID in the main
form. I know that I have the main form and the subform linked
properly. I have done this before but I can't figure out how to do it
now. Do I need to put the Dsum function in the footer of the
continuous subform? Below are my fields, tables and forms.
Main form: frmPayments
Subform: frmEnterCashBills
Main table: tblPayments
sub table: tblCashBillsEntry
I tried to use the following in the footer of the subform to see if I
could get anything but an error or a #name but I couldn't get it to
work. I have a field in the main fom that refers to the field in the
footer of the subform
=dsum("tblCashEntryBillAmount","tblCashBillsEntry","frmCashEntryUnIDfrPmts='29""