Am I misreading your code, or are you only inserting a new record into the table if a record with the ordenproceso.value already exists?
Should your code say instead :
if !seek(.ordenproceso.value,'llamadas','ordenproc')
By the way, since you are selecting llamadas, and setting the index to ordenproc anyway, you really only need
If !Seek(.ordenproceso.value)
Alan
>Thanks for you support, but i have this problem and it consists in that every time that you use the...
>
>
>if seek(.ordenproceso.value,'llamadas','ordenproc')
>
>
>it always says that finds the value in the .ordenproceso.value even when you are introducing a new record that doesn't exists in my table.
>Please help to solve this out.
>
>Thanks.