Hi, I am surprised by this On 21 May 2008, at 09:09, Ruslan Zasukhin wrote: > > insert into link link_name VALUES( lastreid(cust) , lastreid(ph) ) I thought lastrecid was a function on db level and as I understand it, you are using it as if it is stored (lastrecid) per table ? tia Bart