E
eric theise
We're adding vba functionality to an existing database, and
I'm trying to understand the use and scope of user-defined
constants.
We take minimums and maximums in our queries, and it often
makes sense to set something to negative or positive
infinity so that the minimums and maximums are taken over
the numbers that are truly relevant. It seems as if
defining constants such as cPosInf and cNegInf would be a
nicer (self-documenting) way of doing this than having +/-
2147483647 appear inexplicably in queries.
But when I try to define public constants in my module
they're not seen by my queries.
I'm missing something, but what?
Thanks in advance, Eric
I'm trying to understand the use and scope of user-defined
constants.
We take minimums and maximums in our queries, and it often
makes sense to set something to negative or positive
infinity so that the minimums and maximums are taken over
the numbers that are truly relevant. It seems as if
defining constants such as cPosInf and cNegInf would be a
nicer (self-documenting) way of doing this than having +/-
2147483647 appear inexplicably in queries.
But when I try to define public constants in my module
they're not seen by my queries.
I'm missing something, but what?
Thanks in advance, Eric