Check box changes formula used in subform



I have a subform for listing parts. It has fields including: ClaimID, ITEM,
NET PRICE, LIST PRICE, Quantity, Supplier, and a calculated field called Part
Total. The subform is based on a query. The Part Total field is calculated
as (=[tblParts].[NET PRICE]*[tblPartPerClaim].[Quantity]). Then there is a
hidden text box on my subform that calculates the sum of all the Part Totals
for each claim. There is another field on my main form set equal to this
field on the subform.

My question is: Can I have a check box on my main form that, if checked,
would apply a formula to use the LIST PRICE in the calculation instead of the
NET PRICE?

I imagine that I would enter some sort of criteria statement under the
query's calculated fields.

I appreciate any help.

Thanks,

Shannan


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/databases-ms-access/200508/1
.



Relevant Pages

  • Need check box to change formula used in subform source
    ... I have a subform for listing parts. ... NET PRICE, LIST PRICE, Quantity, Supplier, and a calculated field called Part ... hidden text box on my subform that calculates the sum of all the Part Totals ...
    (comp.databases.ms-access)
  • Forms and Calculated Fields
    ... fields in the subform to be shown on the form. ... here and tried Access Help, but am still a little lost. ... item order totals. ... to get the total of all items ordered, based on the created calculated field. ...
    (microsoft.public.access.forms)
  • Re: Forms and Calculated Fields
    ... fields in the subform to be shown on the form. ... item order totals. ... to get the total of all items ordered, based on the created calculated field. ... as the control source of a textbox on the subform footer. ...
    (microsoft.public.access.forms)
  • Adjusting the size of a subform using code
    ... I have a subform that has a "TOTALS" textbox that is a calculated field. ... number of line items in it will change for each customer. ...
    (microsoft.public.access.formscoding)
  • Re: Textbox giving an #Error message
    ... In your subform footer, you can't sum a "calculated" unbound control. ... Place LineTotal field in your sub records instead of your previous calculated field. ... willl yield the sum all indiviodual LineTotals. ...
    (microsoft.public.access.formscoding)