Ver Mensaje Individual
  #1  
Antiguo 09-02-2012
Avatar de Caral
[Caral] Caral is offline
Miembro Premium
 
Registrado: ago 2006
Posts: 7.659
Reputación: 27
Caral Va por buen camino
Hola
Mas o menos:

Código Delphi [-]
var
dato: Integer;
tipo: String;
begin
  Dato:= ADOQuery1.FieldByName('id_asistencia').asinteger;
  If Dato = 1 then
  tipo:= 'Presente';
  If Dato = 2 then
  tipo:= 'Tarde';
  If Dato = 3 then
  tipo:= 'Ausente';
  AdoQuery2.SQL.Text := 'Update ASISTENCIAS set id_asistencia = '+IntToStr(Dato)+', x_asistencia = '+QuotedStr(Tipo);
  AdoQuery2.ExecSQL;
  ADOQuery1.Close,
  ADOQuery1.open;
Saludos
__________________
Siempre Novato
Responder Con Cita