Quote:
"Procedure vs_PM_SelectDates has no parameters and arguments were supplied"
The Error itself is self explanatory.. It's States that Even Thought no Parameters are Required for a Stored Procedure, you are Passing the Parameter to the Stored Procedure...
Your Stored Procedure has to be Changed like this..
Use DataBase_Name
Go
set ANSI_NULLS ON
Go
Set QUOTED_IDENTIFIER ON
Go
ALTER PROCEDURE [dbo].[vs_PM_SelectDates]
@Param1 As DateTime
As
Begin
Select t1.[EmployeeID], t2.[Dispensing ID], t1.[DateEntered]
From [Table1] t1
Inner Join [Detail] t2 On t2.[ID] = t1.[EmployeeID]
Where [DateEntered] > @Param1
Order By EmployeeID, DateEntered
End