Ver Mensaje Individual
  #3  
Antiguo 04-01-2006
Avatar de roman
roman roman is offline
Moderador
 
Registrado: may 2003
Ubicación: Ciudad de México
Posts: 20.269
Reputación: 10
roman Es un diamante en brutoroman Es un diamante en brutoroman Es un diamante en bruto
Intenta esto:

Código Delphi [-]
// Inserción
ADOQuery1.SQL.Text := 'insert into tabla(campos) values(valores)';
ADOQuery1.ExecSQL;

// Último autoinc
ADOQuery1.SQL.Text := 'select @@identity';
ADOQuery1.Open;
Edit1.Text := ADOQuery1.Fields[0].Value;

// Saludos
Responder Con Cita