Ver Mensaje Individual
  #3  
Antiguo 31-08-2006
juanmaster juanmaster is offline
Miembro
 
Registrado: ago 2006
Posts: 24
Reputación: 0
juanmaster Va por buen camino
no me sirve quiero que se ejecute ayumaticament el siguiente codigo cuando yo habra el formularo
procedure TFMAGREGAR.FormCreate(Sender: TObject);
var

ultimo:integer;
begin

FMagregar.ADOQuery1.SQL.Add ('select max(IDARTICULO) +1 ultimo from articulos');

FMAGREGAR.DBEdit1.Text:= inttostr(ultimo);

end;

end.
Responder Con Cita