I have the filters for my textbox set up this way:
=Fields.LeaseType = =Parameters.DealTypeId.Value
AND =Fields.MedicalEntityId = =Parameters.MedicalEntity.Value
However, MedicalEntityId is a nullable value in the database, and I just want it to display the records where the MedicalEntityId is null when I don't specify a value for it in the dropdown list under the preview tab.
When I add in the second parameter and I try to run the report, I get this error: "Object cannot be cast from DBNull to other types."
My initial thought was to change the second filter expression this way :
AND =Fields.MedicalEntityId = =IsNull(Parameters.MedicalEntity.Value, Null)
but I get the same result with that. What am I missing?
=Fields.LeaseType = =Parameters.DealTypeId.Value
AND =Fields.MedicalEntityId = =Parameters.MedicalEntity.Value
However, MedicalEntityId is a nullable value in the database, and I just want it to display the records where the MedicalEntityId is null when I don't specify a value for it in the dropdown list under the preview tab.
When I add in the second parameter and I try to run the report, I get this error: "Object cannot be cast from DBNull to other types."
My initial thought was to change the second filter expression this way :
AND =Fields.MedicalEntityId = =IsNull(Parameters.MedicalEntity.Value, Null)
but I get the same result with that. What am I missing?