Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

3 Parameters, select 1 parameter, pass the other 2 parameters

$
0
0
:crazy: Hey Everyone,This site is awesome first of all and has been very helpful. I have come across a new scenario that I need to pass. I have 3 parameters but I need the user to only select one and run the report. However, if the user selects 1 parameter, I receive the error saying, "Fill in the other parameter fields". I cannot use the Null option in the parameter properties do to inexperience users getting confused with the option. Does anyone know how to select 1 parameter and ignore the other 2? Any help would be appreciated. I am using the parameters in the WHERE Clause of my query. SELECT DISTINCT WaSysAssgnNbr, VendorAgtId, VendorCode, Default_ID, WA_TaxId, WA_Name, PlatformCode, BlkBusCode, GroupNbr, TermDate, PymtStructureId, PymtLvlNbr, PymtLvlAgentSan, PymtLvlAgentName, Payee_San, PayeeNameFROM vwFmPymtStructure AS AWHERE (Default_ID = 'YES') AND (TermDate > { fn NOW() }) AND (WaSysAssgnNbr = @WaSanParameter) OR (TermDate > { fn NOW() }) AND (WaSysAssgnNbr = @WaSanParameter) AND (GroupNbr <> '') OR (Default_ID = 'YES') AND (TermDate > { fn NOW() }) AND (WA_TaxId = @WaTaxIdParameter) OR (TermDate > { fn NOW() }) AND (GroupNbr <> '') AND (WA_TaxId = @WaTaxIdParameter) OR (Default_ID = 'YES') AND (TermDate > { fn NOW() }) AND (Payee_San = @PayeeSanParameter) OR (TermDate > { fn NOW() }) AND (GroupNbr <> '') AND (Payee_San = @PayeeSanParameter)

Viewing all articles
Browse latest Browse all 2791

Trending Articles