Ver Mensaje Individual
  #9  
Antiguo 11-07-2007
Avatar de theloren07
theloren07 theloren07 is offline
No confirmado
 
Registrado: jun 2007
Posts: 10
Reputación: 0
theloren07 Va por buen camino
Unhappy Consultas Múltiples

Bueno aquí esta la estructura de código que utilizo...

Código Delphi.
--------------------------------------------------------------------------------
Código Delphi [-]
procedure TFrmMConsultas.Button1Click(Sender: TObject);
begin
Dmodulo.ADOQuery1.Close;
Dmodulo.ADOQuery1.SQL.Clear;
Dmodulo.ADOQuery1.Sql.Add('Select * From Empleados ');
Dmodulo.ADOQuery1.Sql.Add('Where estadocivil = '+QuotedStr(Combobox1.Text));
Dmodulo.ADOQuery1.Open;
//QrListado.preview;
if Dmodulo.ADOQuery1.eof then
begin
if application.messagebox('Registros no encontrados','Salir',mb_yesno+mb_iconquestion)=idyes then
CLOSE;
end else
begin
QrListado.preview;
end;
end;
end.
--------------------------------------------------------------------------------

Aún no me funciona...

Última edición por marcoszorrilla fecha: 11-07-2007 a las 15:50:41.
Responder Con Cita