Thanks Ray, now I understand. I thought the server would skip this if it turned out that there was nothing in the database, but it was not that simple. I suspect that you could make a rule for this to the "trigger", but it is easier to code if you know what to do.