I have a form in datasheet view with Total and Currency text boxes, in Currency text box I only can enter values of AZN and USD.
Form is based on Table and as criterias information fromUnbound control from another form is used,
In form footer I need to create too text boxes, one of then shoul calculate sum of Total for records where currency field equals to USD and other one calculates sum for Total for records where Currency field equals to AZN. I tried to use SQL in data source property for those fields. I faild, then try to calculate using DSUM function.
Here is my expression. What is wrong? in form view i see #Error as a result.
=DSum("[frmInvoicesResu lt]![Total]","frmInvoicesR esult","[frmInvoicesResu lt]![Currency] = 'USD'")
Thanks in advance
Ambi :))
Form is based on Table and as criterias information fromUnbound control from another form is used,
In form footer I need to create too text boxes, one of then shoul calculate sum of Total for records where currency field equals to USD and other one calculates sum for Total for records where Currency field equals to AZN. I tried to use SQL in data source property for those fields. I faild, then try to calculate using DSUM function.
Here is my expression. What is wrong? in form view i see #Error as a result.
=DSum("[frmInvoicesResu lt]![Total]","frmInvoicesR esult","[frmInvoicesResu lt]![Currency] = 'USD'")
Thanks in advance
Ambi :))
Comment