I have a box that is a calculation of a line item, [txtPrice],[txtPercent], and [txtQuantity]. This is called the line item total. This form subLineItem, is a subform of frmTicket. The problem is the calculation differs depending on if it is a wholesale or retail base price.
Is there a way to put an if statement in the control of the calculated box, or make it conditional and calculate according?
I tried using the OnCurrent of the Parent Form to call the calculation, but it then made all the LineItemTotals the same, I also tried sending the algorithm as a string which would not work. I finally had to just create two new forms/tables, one for Retail Base and the other Wholesale. It just means double the work and variables.
Is there a way around this?
Thanks,
Chris
Is there a way to put an if statement in the control of the calculated box, or make it conditional and calculate according?
I tried using the OnCurrent of the Parent Form to call the calculation, but it then made all the LineItemTotals the same, I also tried sending the algorithm as a string which would not work. I finally had to just create two new forms/tables, one for Retail Base and the other Wholesale. It just means double the work and variables.
Is there a way around this?
Thanks,
Chris