On Wednesday, December 14, 2016, Patrick B <
patrickbakerbr@gmail.com> wrote:
Results in this
Compared to this
Your query has single quotes surrounding the values in the between. In the the error output they don't. You need to modify the dynamic SQL so that they do.
David J.