Z
zofficedepot
Access 2003 (probably other versions too) - Bless their hearts,
Microsoft assumes that when you use a plus sign between two text
fields in a query, that you MEANT to type an & but were too stupid to
do so. Thank you, MS developers - I sleep so much better with the
comfort that you know what I want to do, better than I do, and coerce
my cooperation. Jawohl, mein Kommandant!
Sure, I was using a text field. Yes, I enjoy and take advantage of
implied conversions and such - but it's that dogmatic coercion that is
most lame and offensive (on everything MS touches, BTW). I'm hoping
that this is one of those cases where by some miracle of goodness that
I can escape the coercion? Is there an option for overriding this one?
BTW the minus sign is not afflicted. So maybe the answer is to coerce
numeric conversion with double minuses.
Example:
Table1 has fld1,fld2,fld3,fld4 each left at default declaration as
Text(50).
SELECT [fld1]-[fld2]-[fld3]-[fld4] AS foo, [fld1]-([fld2]+[fld3]+
[fld4]) AS bar, [fld2]+[fld3]+[fld4] AS snafu
FROM Table1;
foo <> bar. Lovely.
Microsoft assumes that when you use a plus sign between two text
fields in a query, that you MEANT to type an & but were too stupid to
do so. Thank you, MS developers - I sleep so much better with the
comfort that you know what I want to do, better than I do, and coerce
my cooperation. Jawohl, mein Kommandant!
Sure, I was using a text field. Yes, I enjoy and take advantage of
implied conversions and such - but it's that dogmatic coercion that is
most lame and offensive (on everything MS touches, BTW). I'm hoping
that this is one of those cases where by some miracle of goodness that
I can escape the coercion? Is there an option for overriding this one?
BTW the minus sign is not afflicted. So maybe the answer is to coerce
numeric conversion with double minuses.
Example:
Table1 has fld1,fld2,fld3,fld4 each left at default declaration as
Text(50).
SELECT [fld1]-[fld2]-[fld3]-[fld4] AS foo, [fld1]-([fld2]+[fld3]+
[fld4]) AS bar, [fld2]+[fld3]+[fld4] AS snafu
FROM Table1;
foo <> bar. Lovely.