>If your question is how to get AUTOINC value after INSERT command generated one then I've already answered this question in my first reply on this thread. Simply call GETAUTOINCVALUE(0) as a procedure.
I also have the same concern as Naomi. I have using free table so I don't know if that could be useful in such situation.