Your query doesn't have any parameters, so I'd assume "variable" is referring to a variable in your code.
Before running your SQL from code, paste it in the query designer and run it there to see if it flys for you.
But your error message doesn't seem to relate to your SQL per se. How are you executing it in code?
Bob
|