Hi,
I'm getting out of suggestions now![]()
If you copy your sql statement from your server into your code, you should get the same result... I see that in your first post you use
and in your sql-servert2.[Product UBR Code] in
This is a difference of course.t2.[Product UBR Code] =
A last thing to check perhaps your selection-variable contains 'P_6664'
If this is the case => ok
But if your variable contains P_6664
in this case you have to write your sql-part like this
Hope this helps."... t2.[Product UBR Code] = '" & selection & "'"