2012-02-02 45 views
1

我想返回不同的值,如果它可見 下面的代碼工作基於一個子報表參數,試圖訪問Visibility屬性分辨子報告可見

=iif (true, Fields!PatientID.Value,」junk so it sql string will not work」) 

現在我試着將其更改爲以下不同的值將返回所以它sql

=iif (commentsub!hidden,」junk so it sql string will not work」) 

這是行不通的。有沒有辦法做到這一點? 我也試過

=iif (commentsub!visible,」junk so it sql string will not work」) 

而且

=iif (commentsub. visible,」junk so it sql string will not work」) 

我怎樣才能做到這一點?

回答