all groups > sql server reporting services > october 2006 >
You're in the

sql server reporting services

group:

conditional IF


conditional IF nicknack
10/30/2006 3:48:59 AM
sql server reporting services:
Hello. I have a query whice look like this:
select a,b,c,d from table1;
Now - when pressing a cell in the first column we are jumping to
another report with the value as parameter (called- p_param);.

In the other report the query is:
select * from table1 where a=::p_param.

What I want to do is taht in the first report I'll will check if the
second query return any result and if so to leave it as a link. If the
second query does't return any result (zero rows) to remove the link so
the user won't go to an empty report.

So first i need to know how to check in the first report what will be
the result of the second query.

Can u help me?

Thanks in advance,
Roy.
RE: conditional IF David Bienstock
10/31/2006 11:40:01 AM
What if you use some code that calls a stored procedure and it will return a
0 or a 1. Then you can return a link or a javascript alert indicating there
was no data to return so the report would be empty.

--
"Everyone knows something you don't know"


[quoted text, click to view]
RE: conditional IF David Bienstock
10/31/2006 11:41:02 AM
What if you use some code that calls a stored procedure and it will return a
0 or a 1. Then you can return a link or a javascript alert indicating there
was no data to return so the report would be empty.

--
"Everyone knows something you don't know"


[quoted text, click to view]
AddThis Social Bookmark Button