The syntax is correct, so must be something else? Can you post enough code that we can recreate the problem?