Hi Sergey
>Hi Peter,
>
>Using ALLTRIM() in the query conditions is asking for trouble. Try to run you query w/o ALLTRIM() or change ALLTRIM() to PADR().
>
Watch out with PADR() when the fieldtype is VARCHAR, see the bugreport I will post in a few minutes.
Regards,
Frank Camp