MuskokaMad
Registered User.
- Local time
- Today, 10:10
- Joined
- Feb 28, 2010
- Messages
- 29
Thanks in advance your your assistance.
I am working on a Order Management Database.
In this Database I have a form frm_NewOrders that is bound to a table tbl_Orders with the Primary Key Order_ID. I have within that form a subform called frm_NewOrderDetails Subform that is Bound to a table tbl_OrderDetails With a Primary Key of OrderDetails_ID. The two are related through the Order_ID Field with the same name on both sides of the relationship.
In the subform I call Product Records from a Table tbl_Products with a Primary Key of Product_ID. I use 3 fields from tbl_Products in the subform. A list box which is keyed to the Product_ID, RetailPrice which is a field in the Product Table (the names are probably self explanatory.) and TaxPercentage (a number not a percentage)
I also have controls for Quantity, Discount (a number not a percentage)
In the subform I have 2 Calculated fields called Subtotal and SubtotalWithTaxes that use the following :
Subtotal: =([RetailPrice]*[Quantity])*((100-[Discount])/100)
SubtotalWithTaxes: =([RetailPrice]*[Quantity])*((100-[Discount])/100)*(([ Taxpercentage]/100)+1)
These return the correct values in their fields.
I would like a text box on the main form that displays a running total for the with tax case.
I have tried 5 or 6 different ways with a DSum but keep getting an error value.
Please Help!
Jason
I am working on a Order Management Database.
In this Database I have a form frm_NewOrders that is bound to a table tbl_Orders with the Primary Key Order_ID. I have within that form a subform called frm_NewOrderDetails Subform that is Bound to a table tbl_OrderDetails With a Primary Key of OrderDetails_ID. The two are related through the Order_ID Field with the same name on both sides of the relationship.
In the subform I call Product Records from a Table tbl_Products with a Primary Key of Product_ID. I use 3 fields from tbl_Products in the subform. A list box which is keyed to the Product_ID, RetailPrice which is a field in the Product Table (the names are probably self explanatory.) and TaxPercentage (a number not a percentage)
I also have controls for Quantity, Discount (a number not a percentage)
In the subform I have 2 Calculated fields called Subtotal and SubtotalWithTaxes that use the following :
Subtotal: =([RetailPrice]*[Quantity])*((100-[Discount])/100)
SubtotalWithTaxes: =([RetailPrice]*[Quantity])*((100-[Discount])/100)*(([ Taxpercentage]/100)+1)
These return the correct values in their fields.
I would like a text box on the main form that displays a running total for the with tax case.
I have tried 5 or 6 different ways with a DSum but keep getting an error value.
Please Help!
Jason