G
Guest
I'm trying to use DSum to sum the values on a form. The form is called
frmWorksSubform. The field I would like to sum is called LineTotal. The
conditional field is called TransactionTypeID and should = 2.
I have tried setting the control source as:
=DSum("[LineTotal]", "[frmWorksSubform]", "[TransactionTypeID] = 2")
but I just get #error displayed.
If it has to be based on a query or table then I have two conditions,
[TransactionTypeID] = 2 and [TaskID] = [Forms]![frmWorks]![TaskID].
What am I doing wring?
Dave
frmWorksSubform. The field I would like to sum is called LineTotal. The
conditional field is called TransactionTypeID and should = 2.
I have tried setting the control source as:
=DSum("[LineTotal]", "[frmWorksSubform]", "[TransactionTypeID] = 2")
but I just get #error displayed.
If it has to be based on a query or table then I have two conditions,
[TransactionTypeID] = 2 and [TaskID] = [Forms]![frmWorks]![TaskID].
What am I doing wring?
Dave