But if you really knew anything about JET or Access in general, you'd know
that you can write a function, in a Standard Module and call it from
anywhere. And if you ever needed to change the function, you'd change it in
a SINGLE place. Further, you can also put an expression in a JET table and
use the Eval() function in a query, form, report, or within another
function.
And for the record, in JET-- stacking queries on top of queries _NEVER_
leads to problems with JET. I've done it for 15 years now, sometimes piling
them as many as 6 deep and NEVER had a problem ... NOT EVEN ONCE.
An old adage, passed down in our family for years, states, "It is better to
keep your mouth shut and let the world think that you are stupid, than to
open your mouth and prove it" You would do well to follow that.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
message
yah.. putting it in one query is all fine and good.. until you need to
use the same LOGIC in another query. then you have two copies of the
same equation.
and then you have FOUR copies of the same equation.
and then-- when you need to change it-- you need to look through all
your queries to fix some common equation like 'QtyExtended'-- do you
really want to put this equation in 20 different places?
and for the record, in JET-- stacking queries on top of queries
_ALWAYS_ leads to problems with JET.
with SQL Server-- you can just put the single equation-- where it
belongs-- IN A TABLE and it is computed whenever you need it-- so it
is always current
-Aaron