Hi everybody......I tried to open a report, but got the message below (I don't understand why this message comes up.....I've defined date_val in the stored procdure.....any ideas what I should look at? Thanks!).......
Procedure Rpt_ActsAndFore has no parameters and arguments were supplied.
The stored procedure in question is:
CREATE PROCEDURE Rpt_ActsAndFore AS
BEGIN
DECLARE @date_val datetime
SELECT @date_val = MIN
(Actual_Calendar.Actual_Calendar_Date )
FROM Actual_Calendar
WHERE Actual_Calendar.Actual_Calendar_Closed = 0
SELECT * FROM Rpt_ActFor1
Where Date <= @date_val AND
DatePart(yy,Date) = DatePart(yy,@date_val)
UNION ALL
SELECT * FROM Rpt_ActFor2
Where Date > @date_val AND
DatePart(yy,Date) = DatePart(yy,@date_val)
UNION ALL
SELECT * FROM Rpt_ActFor3
Where DatePart(yy,Date) = DatePart(yy,@date_val)
END
Procedure Rpt_ActsAndFore has no parameters and arguments were supplied.
The stored procedure in question is:
CREATE PROCEDURE Rpt_ActsAndFore AS
BEGIN
DECLARE @date_val datetime
SELECT @date_val = MIN
(Actual_Calendar.Actual_Calendar_Date )
FROM Actual_Calendar
WHERE Actual_Calendar.Actual_Calendar_Closed = 0
SELECT * FROM Rpt_ActFor1
Where Date <= @date_val AND
DatePart(yy,Date) = DatePart(yy,@date_val)
UNION ALL
SELECT * FROM Rpt_ActFor2
Where Date > @date_val AND
DatePart(yy,Date) = DatePart(yy,@date_val)
UNION ALL
SELECT * FROM Rpt_ActFor3
Where DatePart(yy,Date) = DatePart(yy,@date_val)
END