E
Eric Cathell
I have a database of pallets, each pallet has 40 boxes on it. Assigned to
each box is an area. and each pallet consists of boxes from one area. ie
area 6. there are several areas available and I am doing a check to make
sure the pallet the person is working with is in the area he says he wants
to be working in.
in order to accomplish this I have a sp that takes the palletid, the area
that was input and then checks the database to verify the palletid entered
is in that area. if it is it returns a value of 1 if not it returns a value
of 0. The initial value of the variable in the code is 0. I run the sp (both
through query analyzer and debug mode in code) and it updates the
returnvalue correctly...but my variable that is supposed to be filled does
not update...ie:
check=cmd.executescalar
check does not get updated to 1...it stays at zero, even though I saw the
return value update and return a 1.
help......
each box is an area. and each pallet consists of boxes from one area. ie
area 6. there are several areas available and I am doing a check to make
sure the pallet the person is working with is in the area he says he wants
to be working in.
in order to accomplish this I have a sp that takes the palletid, the area
that was input and then checks the database to verify the palletid entered
is in that area. if it is it returns a value of 1 if not it returns a value
of 0. The initial value of the variable in the code is 0. I run the sp (both
through query analyzer and debug mode in code) and it updates the
returnvalue correctly...but my variable that is supposed to be filled does
not update...ie:
check=cmd.executescalar
check does not get updated to 1...it stays at zero, even though I saw the
return value update and return a 1.
help......