>>>I am not sure what the syntax error may be. I'll continue tomorrow. It's 3:30am here.
>>>
>>
>>'DESC' is reserved word for SQL as in
ORDER BY Something DESC. Try with another field.
>
>Of course! That was it. Thank you very much, Sergey.
>
>Alex
If it will be SQL Server, you would need to enclose such field name in [] (or double quotes). You may also add a table alias before the field name.
If it's not broken, fix it until it is.
My Blog