Quantcast
Viewing all articles
Browse latest Browse all 10045

Unable to Populate Values after selecting multiple parameter value

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
 
 
Transaction Date:
 
SELECT DISTINCT Convert(VARCHAR(20), transaction_date, 101) AS TransactionDate
  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)
 

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')
 
 
Let me know if you can help me.
 
Thanks in advance.

ZK



Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>