Your question is very vague. You've simply stated that you couldn't work something and posted code.
What is the problem you are having? Do you have an error message?
My helpful sig is on vacation trying to loose some weight. It got a bit fat and caused a few problems but it will be back at some point!