Thanks Dirk,
I thought a lot about the query route, but couldn't get it to work for my
problem.  I have a query that returns a number of components to build a
project (electronic stuff).  I have a table with a price break for the
components, and I need to generate a field in the query which gives the
correct price for the quanity I need.  I tried domain aggregate functions,
subqueries as criteria, et cetera, but I never could figure it out...