place the calculation in a standard module (Public procedure) and set the results to the calculation, with the arg, list.
a BRIEF (and uninteresting) example:
Query thing
Foo: FooBar(Foo, Bar)
Module Stuff
Public Function FooBar(Foo as Integer, Bar as Integer) As double
[tab]FooBar = (Foo * Bar)
End Function
MichaelRed
m.red@att.net
There is never time to do it right but there is always time to do it over