You can place the coercision functions at any reference to the variable (or Field) reference. The specific placement obviously depends on your app, however as a GENERAL rule, the earlier in the process you apply the coercision, the better. In most cases I would apply them at the 'query' level, as it lets me do it only once per recordset retrievial. On the other hand, to do this - and not 'hose' the process, you need to apply some error trapping (use of IsNumeric, Nz, ... ) in the query - to be assured that the query itself doesn't blow up. In a heavy traffic environment, this can become a severe penalty. Another disadvantage of the initial query placement is that you need to privide an alais for each field where you use the coercisions. This, in turn, requires that you either change all of your references to the fields, or use another query to re-alais the field names back to their original names.
MichaelRed
mred@duvallgroup.com
There is never time to do it right but there is always time to do it over