SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 CommandText Control if else
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

micnie_2020
Posting Yak Master

Malaysia
226 Posts

Posted - 04/18/2013 :  20:15:06  Show Profile  Reply with Quote
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

India
52317 Posts

Posted - 04/19/2013 :  02:44:17  Show Profile  Reply with Quote
where are you writing the above code?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000