Hola a todos, se ke este tema esta más ke tokado pero kon todo y ke he revisado las respuestas a otros, no he podido resolver el mio
.
Lo ke hago es solo seleccionar un registro una tabla y ese agregarlo a una tabla temporal, y agregado debe mostrarse este registro en otro grid, el problema es ke no se ve ke lo haga, debo salir del ejekutable y volver a entrar para ver ke se haya hecho la transaccion.
Se ke debo poner "commit" pero me marca error, alguien me puede ayudar?
de antemano gracias.
kodigo:
ibtable1.Open;
ibtable2.Open;
while not(ibtable1.Eof)do
begin
if(regselec=string(ibtable1.fieldbyname('CANCION').value))then
begin
ibtable2.Insert;
ibtable2.FieldByName('ID').Value:=ibtable1.FieldByName('ID').Value;
ibtable2.FieldByName('CANCION').Value:=ibtable1.FieldByName('CANCION').Value;
ibtable2.FieldByName('ARTISTA').Value:=ibtable1.FieldByName('ARTISTA').Value;
ibtable2.FieldByName('ALBUM').Value:=ibtable1.FieldByName('ALBUM').Value;
ibtable2.FieldByName('UBICACION').Value:=ibtable1.FieldByName('UBICACION').Value;
ibtable2.Post;
ibtransaction2.Commit;
end;
ibtable1.next;
end;
ibtable1.Close;
ibtable2.Close;