Hi All,
I am trying to sum the values in a textbox on a subform using a textbox in that subforms footer. Currently I have the textbox's control source to be this: =Sum(IIf([chkInvoiceSent]=True,[txtPaymentAmount],0)). This isn't filtering the appropriate records and is instead summing everything.
I want to sum payment amount only if the chkinvoicesent box is checked off. Is the proper way to do this with a Dsum? I wanted to do it with the sum because it is faster and more elegant, or so I thought!
I am trying to sum the values in a textbox on a subform using a textbox in that subforms footer. Currently I have the textbox's control source to be this: =Sum(IIf([chkInvoiceSent]=True,[txtPaymentAmount],0)). This isn't filtering the appropriate records and is instead summing everything.
I want to sum payment amount only if the chkinvoicesent box is checked off. Is the proper way to do this with a Dsum? I wanted to do it with the sum because it is faster and more elegant, or so I thought!