I have a dropdown with parameters Student Name and Student Id. When I select Student Name a textbox appears as below and have the submit button:
On clicking Student ID the report parameter is displayed as below:
For both Student name and student Id am using the dataset StudentDetails. When the report runs if the value for student Name is not found should display message “Student Name not found” and if Student Id is incorrect should display message “Student Id not found”.
On the report I have added a textbox to display the message with the expression as below:
=SWITCH(
First(Fields!StudentName.Value, "StudentDetails")=""," Student Name not found ",
First(Fields!StudentId.Value, " StudentDetails ")=""," Student Id not found ")
When incorrect student name is input the message appears correctly, however, for incorrect student id still the same message is displayed “Student Name not found”
Thanks for helping