The ANSI SQL standard allows the function decode in a query, I believe. It appears Access doesn't allow this. Is thre an equivalent for the fucntion?
select val1, min(val2), max(val3)
from tbl1
group by val1
having min(decode(val2,0,999,val2)) > max(val3)
That's what I'm trying to do. --------------------------------------
It's not the monsters under your bed, it is the men next door.
That make you fear, make you cry. Make you cry for the Child.
All the wars are fought amongst those lonely men. Unharmed, unscarred.
select val1, min(val2), max(val3)
from tbl1
group by val1
having min(decode(val2,0,999,val2)) > max(val3)
That's what I'm trying to do. --------------------------------------
It's not the monsters under your bed, it is the men next door.
That make you fear, make you cry. Make you cry for the Child.
All the wars are fought amongst those lonely men. Unharmed, unscarred.