Ver Mensaje Individual
  #19  
Antiguo 01-08-2007
Avatar de cHackAll
[cHackAll] cHackAll is offline
Baneado?
 
Registrado: oct 2006
Posts: 2.159
Reputación: 22
cHackAll Va por buen camino
Código Delphi [-]
// ListBox1.Sorted := True; {si es que no interesa el orden, caso contrario coméntanos}
 
 ADOQuery1.SQL.Text := 'select iif(isnull(nm.prefijo),'''',nm.prefijo) + nm.nom + nm.sufijo + ''  '' + iif(isnull(m.prefijo),'''',m.prefijo) + m.nom + m.sufijo from muchos nm, muchos m where nm.idtipo = ''NM'' and m.idtipo = ''M''';

// Saludos
Responder Con Cita