I have taken a look at the solutions report that you are trying to imitate. This might seem redundant, but have you set your query definition ahead of this line. I'm only asking, because if the error is trapped on this line, then something is not set up correctly for it to continue, and it...