I need to pass the query from my Dataset as a parameter to another report.
I created a parameter with the expression '= Datasets! MyDataSet.CommandText' as default value, but giving preview displays an error: The value expression used for the report parameter 'dsQuery' refers to a dataset. Datasets can not be used in report parameter expressions.
I created a textbox with the same expression and it displays normal, so I changed the parameter expression to 'ReportItems!TextBox1.Value', but continued with similar error.
How to pass the CommandText from my Dataset as a report parameter?