cmd.Parameters.Add(New SqlParameter("LossID", SqlDbType.Int).Direction = ParameterDirection.Output)
.....
Dim LossID as integer
lossID = cmd.Parameters("@LossID").Value
When I add my output parameter to my command object, I am receiving a
The SqlParameterCollection only accepts non-null SqlParameter type objects, not Boolean objects.
How do I correctly place my return value into the lossID integer? thank you very much
LossIDand when you try to access your parameters collection, you use@LossID- I think you should consistently use the notation with the leading at (@) sign.