C
Chlaris
Dear all,
I have a main form and subform
Main form : frmListInvoiceMain
Subform : frmListInvoiceDetail
In the form footer of frmListInvoiceDetail, I have a text box :
Name : txtSumOfAmount
Control Source : =Sum([Amount])
In the form footer of frmListInvoiceMain, I have a text box :
Name : txtTotal
Control Source : =[frmListInvoiceDetail].[Form]![txtSumOfAmount]
The record source of frmListInvoiceDetail is retrieved from union query.
If there are record(s) in the subform, txtTotal works fine.
But if there is no record in the subform, txtTotal return #Error
How to solve this problem ?
Thanks.
Chlaris
I have a main form and subform
Main form : frmListInvoiceMain
Subform : frmListInvoiceDetail
In the form footer of frmListInvoiceDetail, I have a text box :
Name : txtSumOfAmount
Control Source : =Sum([Amount])
In the form footer of frmListInvoiceMain, I have a text box :
Name : txtTotal
Control Source : =[frmListInvoiceDetail].[Form]![txtSumOfAmount]
The record source of frmListInvoiceDetail is retrieved from union query.
If there are record(s) in the subform, txtTotal works fine.
But if there is no record in the subform, txtTotal return #Error
How to solve this problem ?
Thanks.
Chlaris