Hi!
I want to get a value in a textfield on a form using DSum.
When the form open I have an event procedure that sums up the value in a storage for each market. INow I have this line:
Forms!Ekonomi!Saldo = DSum("Antal*Lagervärde_avg", "tblLager",[ ])
The problem is that I dont know how to write the criteria.
In table A (tblLager) I have the amounts to sum. In table B I have the market each product belong to. What I need is a way to sum the totals in each marketgroup. Hope you understand what I mean.
Please help
I want to get a value in a textfield on a form using DSum.
When the form open I have an event procedure that sums up the value in a storage for each market. INow I have this line:
Forms!Ekonomi!Saldo = DSum("Antal*Lagervärde_avg", "tblLager",[ ])
The problem is that I dont know how to write the criteria.
In table A (tblLager) I have the amounts to sum. In table B I have the market each product belong to. What I need is a way to sum the totals in each marketgroup. Hope you understand what I mean.
Please help