Ver Mensaje Individual
  #7  
Antiguo 02-08-2013
Avatar de oscarac
[oscarac] oscarac is offline
Miembro Premium
 
Registrado: sep 2006
Ubicación: Lima - Perú
Posts: 2.015
Reputación: 22
oscarac Va por buen camino
yo creo que deberias armar una cadena dependiendo de los edits algo as
Código Delphi [-]
strsql := 'select * from PERSONAS where FECHANC > :B and FECHANC  < :C '
if edtPais.text <> ''  then
  strsql := Strsql + ' and Pais = ' + quotedStr(edtPais.text)
Endif

if edtProvincia.text <> '' then
  strsql := Strsql + ' and Provincia = ' + quotedStr(edtPais.text)
Endif
y asi sucesivamente por cada edit
__________________
Dulce Regalo que Satanas manda para mi.....
Responder Con Cita