> > I think this rotine is not suitable because some costumers complain >that for some reason the code become repetead >Is there a more eficient way to do it ? > >Regards > >Moises
select mytable
lock('0') && lock RECCOUNT()* you have a cod order activegobottominsertinto (ALIAS()) (cod) values (cod+1)
UNLOCKRECORD0