Thanks. I posted one of the calculations in an earlier post - Function OrderLevelDiscountsPercentCalc(...). Please see above
Am I right to understand you are saying I can embed this code into a query? That is great. How do I do that so it passes the values into the function and puts the results into to the results.
Thanks again.
Tony