I am trying to create a parameterized report using the following data source:
SELECT SITE, COUNT(SITE) AS #EVENTS, SUM(WORKTIME) AS WORKTIME, SUM(TOTALEVENTTIME) AS EVENTTIME
FROM EDB_RECORDS
WHERE RECEIVEDDATE BETWEEN '2008-10-01' AND '2008-10-31'
GROUP BY SITE
ORDER BY SITE
I can get the report to display with the WHERE statement as written, but I need to change the WHERE statement to: WHERE RECEIVEDDATE BETWEEN @BDATE AND @EDATE. The intent is to have the user enter the beginning date and the ending date.
I set up a web page to pass the values to the report, but was having trouble putting in the code to check for the parameters using an example I found in the forums.
Any assistance will be greatly appreciated.
I’m using VS2008 using VB, MS SQL Server 2005 and .NET 3.5
Thanks,
Doug