>>Is is possible your grid as a relation? Am I right to say that it crashes on the skip 10 line?
>
>Yes, it crashes on the skip 10 line. I'm not sure what you mean by relation?
Is the grid table being part of a parent or child relation with another table?