Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

SSRS Date Range

$
0
0

Hello All,

I am having issue with the Date Range in the SSRS report. How do I pass the start date and end date parameters in the following query? I tried using(Transdate = @PrmStartDate AND TransDate=@PrmEndDate) in the query below but it does not work. Following is the SQL statement used in the Dataset. Please help me with this.

Thanks,

Amol

SELECT        PONumber, recid, TransCount, TransType, TransItem, TransDate, TransEmployee, TransJob, ExtraCode, OrderType, PODetailDescription, ReferenceNumber, Unit, 
                         Location, StockDec, CostDec, UnitName, DateRequired, UnitMeasureName, Status, APAccountCode, TransQty, TransCost, TotalCost, Extention, MeasureExtention, 
                         AmountBackorder, AmountReceived, AllowableOverrun, SupplierCode, CostCenter, DateReceived, RequisitionNo, bkey0, bkey1, bkey2, bkey3, bkey4, bkey5, 
                         QuotationNumber, VendorItemNumber
FROM            PODetails
WHERE        (TransJob = @PrmJob) AND (PONumber = @PrmPO)  OR
                         (TransJob = @PrmJob) AND (@PrmPO = '') OR
                         (PONumber = @PrmPO) AND (@PrmJob = '') OR
                         (@PrmPO = '') AND (@PrmJob = '')
ORDER BY PONumber DESC


Viewing all articles
Browse latest Browse all 10045

Trending Articles