ayuda con filtros....
tengo un problema con filtros, tengo 3 cuadros de texto: nombre, app, apm, necesito por favor si alguien me pudiera ayudar a hacer una busqueda filtrando, pero a la vez pensando que no me pudiera saber el nombre, y el app si o los apellidos si, pero el nombre no o viseversa, ojala alguien me pudiera ayudar gracias....
filtro=".t."
if not empty(thisform.txtnombre.value)
filtro=filtro+" and nombre=thisform.txtnombre.value"
endi
if not empty(thisform.txtapp.value)
filtro=filtro+" and app=thisform.txtapp.value"
endi
if not empty(thisform.txtapm.value)
filtro=filtro+"and apm=thisform.txt.apm.value"
endi
Select tuTabla
Set filter to &filtro
if not empty(thisform.txtnombre.value)
filtro=filtro+" and nombre=thisform.txtnombre.value"
endi
if not empty(thisform.txtapp.value)
filtro=filtro+" and app=thisform.txtapp.value"
endi
if not empty(thisform.txtapm.value)
filtro=filtro+"and apm=thisform.txt.apm.value"
endi
Select tuTabla
Set filter to &filtro
