randy benson said:You have provided insufficient data to diagnose your problem, except to say that likely, your routine is failing to complete an entmake of an insert; could you maybe post the routine?
Paul Turvill said:"Unterminated Complex Entity" could mean there's something wrong with your block named "sdate" ... otherwise, your code looks like it should work.
___