Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > SQL
Registrarse FAQ Miembros Calendario Guía de estilo Buscar Temas de Hoy Marcar Foros Como Leídos

 
 
Herramientas Buscar en Tema Desplegado
  #9  
Antiguo 13-01-2006
Avatar de alcides
alcides alcides is offline
Miembro
 
Registrado: dic 2003
Ubicación: Republica Dominicana
Posts: 204
Poder: 23
alcides Va por buen camino
Gracias Delphi.com.ar,

cambie y realice esta rutinita para agregar registro de una tabla a otra y resulta que solo me agrega un registro y finaliza.


Código PHP:
       Tbl_Detalle.Insert;
       
qry_detalle_cheques.Close;
       
qry_detalle_cheques.Parameters.ParamByName('pfecha_inicial').Value := strtodate(fecha_inicial.Text);
       
qry_detalle_cheques.Parameters.ParamByName('pfecha_final').Value   := strtodate(fecha_final.Text);
       
qry_detalle_cheques.open;
    if 
qry_detalle_cheques.RecordCount 0 then begin
       Tbl_detalle
.FieldByName('numero_transacion').Value := qry_detalle_chequesnumero_cheques.Value;
       
Tbl_detalle.FieldByName('fecha_transacion').Value  := qry_detalle_chequesfecha_cheques.Value;
       
Tbl_detalle.FieldByName('cuenta').Value            := qry_detalle_chequescuenta_cheques.Value;
       
Tbl_detalle.FieldByName('descripcion').Value       := qry_detalle_chequesdescripcion.Value;
       
Tbl_detalle.FieldByName('debito').Value            := qry_detalle_chequesdebito.Value;
       
Tbl_detalle.FieldByName('credito').Value           := qry_detalle_chequescredito.Value;
       
Tbl_detalle.FieldByName('ccdebito').Value          := 0;
       
Tbl_detalle.FieldByName('cccredito').Value         := 0;
       
Tbl_detalle.FieldByName('dia_transacion').Value    := 0;
       
Tbl_detalle.FieldByName('mes_transacion').Value    := 0;
       
Tbl_detalle.FieldByName('ano_transacion').Value    := 0;
       
Tbl_detalle.FieldByName('monto').Value             := 0;
       
Tbl_detalle.FieldByName('posteada').Value          := ' ';
       
Tbl_detalle.FieldByName('usuario').Value           := ' ';
       
Tbl_detalle.Post;
end

porque solo agrega uno? y luego finaliza

gracias mil,

Alcides
Rep. Dom.
Responder Con Cita
 


Herramientas Buscar en Tema
Buscar en Tema:

Búsqueda Avanzada
Desplegado

Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro


La franja horaria es GMT +2. Ahora son las 22:26:27.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi