Yeah, the query does return a value. It is as if dbi is not picking up the variable and returning it. i can attach the dbi trace if that is of any use?
thanks.
It might help... (no guarantees whatsoever, though).
In case it's long, please wrap it in <readmore>...</readmore> tags,
to not annoy those who don't want to look at it...