>>>No, I did not. I do check it now and it returns .F.. With aError I find out that the error 'Uniqueness of key violated' (or something like that) is the problem. When I change my index to a regular index (was primary) TableUpdate returns .T. and all new records are inserted but there Id = 0.
>>>
>>>Any idea?
>>>Marco
>>
>>How are you generating the PK in the view? Sounds like your "unique" number is not so unique after all.
>
>Yes, they are unique. As I write before when I browse the view all records have a unique PK. After a tableupdate the inserted records in the table have PK 0. It seems like the PK is not updated.
Is your primary Key marked as updatable in the view definition.
Erik Moore
Clientelligence