L
L8rdays
Hi all,
My programming skills are over 10 years old, and need some help. We have a
consultant creating a couple of small custom reports for us. We are getting
an error when we run one of the reports. He says he doesn't get the error in
his environment. So here is the error we get...
Must declare the scalar variable "@ProjectStatus".
When I did a find through his code I can only find two instances of this
variable. Here is the code.. any thoughts?
WHERE (MSP_EpmTask_UserView.TaskOutlineLevel = 0) AND
(MSP_EpmTask_UserView.TaskOutlineNumber = 0) AND
(MSP_EpmProject_UserView.[Project Status] =
@ProjectStatus) AND (MSP_EpmTask_UserView_1.[TaskIsMilestone ] = 1) OR
(MSP_EpmTask_UserView.TaskOutlineLevel = 0) AND
(MSP_EpmTask_UserView.TaskOutlineNumber = 0) AND
(MSP_EpmTask_UserView_1.[TaskIsMilestone ] = 1) AND
(@ProjectStatus = 'All')
Thanks!
My programming skills are over 10 years old, and need some help. We have a
consultant creating a couple of small custom reports for us. We are getting
an error when we run one of the reports. He says he doesn't get the error in
his environment. So here is the error we get...
Must declare the scalar variable "@ProjectStatus".
When I did a find through his code I can only find two instances of this
variable. Here is the code.. any thoughts?
WHERE (MSP_EpmTask_UserView.TaskOutlineLevel = 0) AND
(MSP_EpmTask_UserView.TaskOutlineNumber = 0) AND
(MSP_EpmProject_UserView.[Project Status] =
@ProjectStatus) AND (MSP_EpmTask_UserView_1.[TaskIsMilestone ] = 1) OR
(MSP_EpmTask_UserView.TaskOutlineLevel = 0) AND
(MSP_EpmTask_UserView.TaskOutlineNumber = 0) AND
(MSP_EpmTask_UserView_1.[TaskIsMilestone ] = 1) AND
(@ProjectStatus = 'All')
Thanks!