I tested the method on my own system before posting it, so I'm not sure why you're getting the error.
Did you compile the class after saving it?
Are you certain the name of the production is spelled correctly?
Are you in the proper namespace?
EDIT: I also added a tiny bit of error checking to the original method ... note the Return statement after the line Set tPrd...
- Log in to post comments
.png)