I don't know your SQL string that works so I would not know. I am guessing the "< >" should be "<>".