Create a query that includes the report's current recordset, and add columns that calculate the values you want. Then base the report on that query. You can then filter on the calculated fields just like any other fields.
This assumes that you calculations are simple expressions. If you're doing a more complicated calculation involving logic, you'll have to create a function in a standard module that does the calculation, and call that function from the query. For example, you could add a column to the query with its Field row set to:
CalcValue: MyFunc(Fld1, Fld2, Fld3)
You will then have a field named "CalcValue" which you can bind to a control on the form, and use in a filter. 'MyFunc' must be a function in a standard module that takes 3 arguments and returns the calculated value. Rick Sprague
Want the best answers? See faq181-2886
To write a program from scratch, first create the universe. - Paraphrased from Albert Einstein