I'm doing some further investigating and will post. I assumed that more than one value would return an error, if this is not the case, then multiple values could be the problem.
I'm using the following SQL expression to fill a field in a report:
(select "inc_cat_1"."inc_cat_sc"
from "inc_cat"
as "inc_cat_1"
where "incident"."incident_id" = "act_reg"."incident_id"
and "act_reg"."cause_id" = "inc_cat_1"."inc_cat_id"
and "inc_cat_1"."inc_type" = 'c')...
Yes, its Crystal XI and SQL 2008.
Thankyou, that seems to have worked perfectly. I'm sure I tried isnull and couldn't get it to work. Obviously doing something wrong, can't remember now. Thanks again.
Apologies for the thread title, I had some difficulties posting. if possible, could it be changed to "SQL expression incorrectly returning null value".
I have a SQL expression something like this:
(select max("act_reg"."act_rmk" + "act_reg"."act_rmk" + "act_reg"."act_rmk" + "act_reg"."act_rmk") from "act_reg"
where "incident"."incident_id"="act_reg"."incident_id")
which is extracting text from the four "rmk" fields and placing them in a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.