Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 CommandText Control if else

Author  Topic 

micnie_2020
Posting Yak Master

232 Posts

Posted - 2013-04-18 : 20:15:06
Hi Sir/Madam,

I need query to display the TextBox1 which contain message:-
You Do Not Have Permission To View This Dashboard

if the parameter countRow value return empty else run the query. How can I perform above scenario?

My code sample as below, but something wrong on the TextBox1.show=true:-

IF @CountRow = ''
BEGIN
TextBox1.show=true
END

IF @CountRow != ''
BEGIN
select * from ....
END


Please advise.

Thank you.

Regards,
Micheale

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-04-19 : 02:44:17
where are you writing the above code?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -