Hello I have a database of spare parts and I want to calculate the price of the whole warehouse.
I have managed to do [quantity]*[price] in a subform but now I want to sum all and show the result in textbox.
If I'm correct Dsum only works on tables or querries. My total is calculated in subform so my Dsum would look like this =Dsum(txtTotal;WarehouseSubform; )
It does not work error says #Name?
Ok now I have created a querry with calculated field "total" which multiplies price and qty. This works fine.
Can you tell me the exact sintax for dsum.
querry name: "Totalquerry"
calculated field name: "total"
When I put in this code I get back an error saying that I have inserted invalid sintax.
I'm not using that names that i wrote because my database is in slovenian so it would be confusing for you to read slovenian.
Hello
I have another question. Now that Dsum is working the only thing that is bothering me is that when I make changes to the database the total amount does not change until I reopen Form. How can I make the price refresh every time I make a change?