I'm not able to populate state as shown in image. Though transaction dates are shown once I select stores but state are not shown after store and transaction date parameter is selected.
Image may be NSFW.
Clik here to view.
Here is the query Im using for three of them
Store:
Select distinct Convert(varchar(20),store_no) as Store
From SalesAudit.TaxExemptTrans
From SalesAudit.TaxExemptTrans
Transaction Date:
SELECT DISTINCT Convert(VARCHAR(20), transaction_date, 101) AS TransactionDate
FROM SalesAudit.TaxExemptTrans
Where convert(varchar(20),Store_no) IN (@Store)
FROM SalesAudit.TaxExemptTrans
Where convert(varchar(20),Store_no) IN (@Store)
State:
SELECT distinct State
FROM SalesAudit.TaxExemptTrans
Where Convert(varchar(20),store_no) In (@Store )
AND convert(varchar(20),convert(date,transaction_date)) In (@TransactionDate)
FROM SalesAudit.TaxExemptTrans
Where Convert(varchar(20),store_no) In (@Store )
AND convert(varchar(20),convert(
Main Query:
SELECT [tax_exempt_no]
,[transaction_no]
,[transaction_date]
,[register_no]
FROM [SalesAudit].[TaxExemptTrans]
Where
(Convert(varchar(20),Store_no) In (@Store) or @Store='Select All')
AND
(convert(varchar(20),convert(date,transaction_date)) In (@TransactionDate) Or @TransactionDate='Select All')
AND
(Convert(varchar(20),state) IN (@State) Or @State='Select All')
,[transaction_date]
,[register_no]
FROM [SalesAudit].[TaxExemptTrans]
Where
(Convert(varchar(20),Store_no) In (@Store) or @Store='Select All')
AND
(convert(varchar(20),convert(
AND
(Convert(varchar(20),state) IN (@State) Or @State='Select All')
Let me know if you can help me.
Thanks in advance.
ZK