ok, there is in the update() line:
if 3=ubound($c)

this checks that the data is correct but it does not check if there is no previous data.
so, changing it to:
if 3=ubound($c) and 3=ubound($PMnewist)

should fix that...
_________________________
!

download KiXnet