Originally Posted by Mag
I figured it out. I needed to do the whole system as a procedure. It stopped crashing.
It would be great if you posted the working code here.