Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Services / Reporting Services / October 2006

Tip: Looking for answers? Try searching our database.

conditional IF

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nicknack - 30 Oct 2006 12:48 GMT
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.
David Bienstock - 31 Oct 2006 20:40 GMT
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.

Signature

"Everyone knows something you don't know"

> Hello. I have a query whice look like this:
> select a,b,c,d from table1;
[quoted text clipped - 16 lines]
> Thanks in advance,
> Roy.
David Bienstock - 31 Oct 2006 20:41 GMT
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.

Signature

"Everyone knows something you don't know"

> Hello. I have a query whice look like this:
> select a,b,c,d from table1;
[quoted text clipped - 16 lines]
> Thanks in advance,
> Roy.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.