Hi, I am new to this forum.
I hope that you can help me with a problem.
I have created order, orderitem, customer and product tables.
The tables have appropriate indexes so that I can link the keyfields.
On a Delphi form I want to show a bill with the orderitems in a dbgrid and in a seperate field the sum of salesprice of all the orderitems to a specific ordernr.
Browsing through the orders is working Ok.
The dbgrid shows the correct orderitems with a certain ordernr.
But calculating and showing the total sum of the bill won't work.
I have tried calculated fields, querys but nothing worked.
Please will anyone show me where to start to summerize the salesprice to show the total sum of the orderitems in a seperate field on the form while browsing through the orders table.
Peter.
I hope that you can help me with a problem.
I have created order, orderitem, customer and product tables.
The tables have appropriate indexes so that I can link the keyfields.
On a Delphi form I want to show a bill with the orderitems in a dbgrid and in a seperate field the sum of salesprice of all the orderitems to a specific ordernr.
Browsing through the orders is working Ok.
The dbgrid shows the correct orderitems with a certain ordernr.
But calculating and showing the total sum of the bill won't work.
I have tried calculated fields, querys but nothing worked.
Please will anyone show me where to start to summerize the salesprice to show the total sum of the orderitems in a seperate field on the form while browsing through the orders table.
Peter.