W
WoodyAccess
I have an OrderDetails subform and I am having trouble getting the correct
expressions/calculations to perform correctly.
The subform is called Order_Details_Subform and it has a cboProduct where I
choose the product. The Row Rource of the cbo has an 8 column query to put
relevant information into other controls (ie UnitType, and UnitPrice from
tblProduct).
The 8th column is an expression called ExtPrice:
CCur([Quantity]*[UnitPrice]*(1-[Discount]))
What I want to happen is when I select the product from cboProduct I want
the ExtendedPrice control to be filled with the result of the expression and
if I change any details for the result to change accordingly. (I have
Me.recalc in relevant other controls).
However, the only way I can get the correct answer in the ExtendedPrice
control is to put the equation it's control source? But this means that the
result does not appear in my tblOrderDetails.
Also I have a OrderTotal from in my main form that I want to display the
total of all the products selected. Would I put an equation n the footer of
my subform and relate the mainform control to display this total (what would
the equation be?)
expressions/calculations to perform correctly.
The subform is called Order_Details_Subform and it has a cboProduct where I
choose the product. The Row Rource of the cbo has an 8 column query to put
relevant information into other controls (ie UnitType, and UnitPrice from
tblProduct).
The 8th column is an expression called ExtPrice:
CCur([Quantity]*[UnitPrice]*(1-[Discount]))
What I want to happen is when I select the product from cboProduct I want
the ExtendedPrice control to be filled with the result of the expression and
if I change any details for the result to change accordingly. (I have
Me.recalc in relevant other controls).
However, the only way I can get the correct answer in the ExtendedPrice
control is to put the equation it's control source? But this means that the
result does not appear in my tblOrderDetails.
Also I have a OrderTotal from in my main form that I want to display the
total of all the products selected. Would I put an equation n the footer of
my subform and relate the mainform control to display this total (what would
the equation be?)