Hi
I am working on a report that has a parameter for student ID. Currently, all student IDs are getting listed in a drop-down list and users have the option of either selecting one student ID from the dropdown and seeing the report for that specific student or leaving it as null and seeing all students' reports.
Now users have requested to have the option of having a textbox too, so they don't have to browse the dropdown list if they want a single student report, instead just easily type the student ID in a textbox and pull the report.
I have now defined a second parameter for student ID and have defined an expression where the query fields are defined. In the expression, I set if the parameter for textbox is NULL then take the parameter from the dropdown, else take the parameter from textbox. When the textbox (P_StudentID) is null it works, but if I type in any valid student ID in the textbox it doesn't pull any report.
=IIF(ISNOTHING(Parameters!P_StudentID.Value), Parameters!P_STUDENT_ID.Value, Parameters!P_StudentID.Value)
Is anyone able to help?
Thanks