So the code that errors isn't here? The way to debug things like this is:
http://www.baldyweb.com/ImmediateWindow.htm
so add your code for PEBLO and un-comment that line for strWhere so you can see what the final string is. If you don't spot the problem, post it here.