Ver Mensaje Individual
  #1  
Antiguo 24-09-2012
jcrios_9 jcrios_9 is offline
Miembro
NULL
 
Registrado: sep 2012
Posts: 13
Reputación: 0
jcrios_9 Va por buen camino
Error couldn't perform the edit because another user change the record

Buenas compañeros, tengo el siguiente codigo

Código Delphi [-]

 Table1->Edit();
            Table2->Edit();
            Table1->FieldByName("Dni")->Value = Edit1->Text;
            Table1->FieldByName("Nombre")->Value = Edit2->Text;
            Table2->FieldByName("Apellido1")->Value = Edit3->Text;
            Table2->FieldByName("Apellido2")->Value = EditApe2->Text;
            Table1->FieldByName("Provincia")->Value = EditProv->Text;
            Table1->FieldByName("Localidad")->Value =EditLoc->Text ;
            Table1->FieldByName("Direccion")->Value = Edit4->Text ;
            Table1->FieldByName("Telefono")->Value = Edit5->Text ;
            Table1->FieldByName("Email")->Value = Edit6->Text ;
            Table1->Post();
            Table2->Post();

pero resulta que me sale el error: Error couldn't perform the edit because another user change the record.
El error sale justo antes de Table2->Post(); Es decir, el post de la tabla1 lo hace bien, pero el de la tabla 2 no.

Con una tabla simpre me sale bien, pero al meterle dos tablas sale dicho error. Alguien puede decirme a que se debe?'

Muchas gracias y un saludo.
Responder Con Cita