Práve som to otestoval, doplnil ďalšie podmienky a funguje bezchybne. Ďakujem, označujem za vyriešené.