I have made a invoiceform (main form) with a subform where I fill in articles bought by customer. Each article contains of Item#,Article,Quantity, description and price. Now I want to sum the total of all lineitems (articles). I use the Sum() function in the subform and a reference in the mainform to the textbox in the subform with success. Now to my question, I want to sum all articles in invoice where the article is named "floppydisk" in a textbox in mainform. I have tried to use DSum()with criteria "floppydisk" in subform (looks fine in subform with correct price, with price for all "floppydisk"-lineitems which is correct). When I then reference a textbox in mainform to the textbox in subform the sum of the lineitems where I have floppydisk is not correct.
This is how it looks like in subform:
=DSum([Price];"[tbllineitems]";"Article=floppydisk")
Where tbllineitems is the table with all articles picked at mainform.
How can I sum the lineitems correctly in mainform.
BR
Stefan from Sweden
This is how it looks like in subform:
=DSum([Price];"[tbllineitems]";"Article=floppydisk")
Where tbllineitems is the table with all articles picked at mainform.
How can I sum the lineitems correctly in mainform.
BR
Stefan from Sweden