Yes, i am using a Report Datapage, I tried to use:
IsNull(
(
SELECT COUNT(name)
FROM _v_My_View
WHERE My_View_name = target.[@field:name]
),0)
but don't work either so i decided to go for something much more simple in the beginning (what i post before) to see if i can make it work.
The problem in general as far i can see is when there is no such target.[@field:name] in my table/view when instead of 0 or NULL i just get "error". @Meekeeemaybe you know what to do, i ran out of ideas.