specialist
Programmer
Greetings-
I am having a tough time writing a stored procedure which will return results between a Start Date and End Date from a form. Simple Question:
How can I do this?
I have a stored prodcedure which returns the results of the column in question, but it returns ALL of the results. How can I add the StartDate and EndDate paramaters in the Stored procedure to make this work?
Any advide on this matter would be warmly welcomed.
Many thanks,
Michael
Procedure:
CREATE PROCEDURE sp_food
AS
SELECT COUNT (Entry_Number) AS CAT3_4
FROM tblInfo
WHERE Area = ("S") AND Category = ("3") AND Type = ("Food") AND Complete = ("1")
GO
-------
Would like to add these parameters:
StartDate
EndDate

I am having a tough time writing a stored procedure which will return results between a Start Date and End Date from a form. Simple Question:
How can I do this?
I have a stored prodcedure which returns the results of the column in question, but it returns ALL of the results. How can I add the StartDate and EndDate paramaters in the Stored procedure to make this work?
Any advide on this matter would be warmly welcomed.
Many thanks,
Michael
Procedure:
CREATE PROCEDURE sp_food
AS
SELECT COUNT (Entry_Number) AS CAT3_4
FROM tblInfo
WHERE Area = ("S") AND Category = ("3") AND Type = ("Food") AND Complete = ("1")
GO
-------
Would like to add these parameters:
StartDate
EndDate