Ver Mensaje Individual
  #1  
Antiguo 13-05-2008
aanil aanil is offline
Miembro
 
Registrado: abr 2006
Posts: 155
Reputación: 19
aanil Va por buen camino
Ayuda con Select Count

Hola a todos, estaba a pundo de no seguir con mi aplicacion que ateriormente le expuse, porque esto lo hago para osio.

Le expongo el siguiente codigo que fue comenzado anteriormente para que me lo corrijan ya que dice que tiene un error de sintaxis

Código SQL [-]
 
procedure TForm1.Button1Click(Sender: TObject);
begin
with adoquery1 do begin
CLOSE;
SQL.Clear;
SQL.Add('SELECT COUNT(APELLIDO2)FROM CENTROSEDUC');
SQL.Add ( 'WHERE APELLIDO2 = ("PEREZ")  AS APELLIDO');
OPEN;
edit1.Text:= intToStr(adoquery1.FIELDBYNAME('APELLIDO').AsInteger);
end;
end;
end.

Gracias por sus ayudas.
A ver si me motivo.
Responder Con Cita