a=DAY(DATE())-10mes1=MONTH(DATE())año1=YEAR(DATE())IF a<0REPORT FORM datos_de_responsables.frx ALL FOR pagos.n_dpto=thisform.n_dpto.value AND pagos.fecha_pago={} AND pagos.año<=año1 AND pagos.mes<mes1 PREVIEW NOCONSOLE NOWAITELSEREPORT FORM datos_de_responsables.frx ALL FOR pagos.n_dpto=thisform.n_dpto.value AND pagos.fecha_pago={} AND pagos.año<=año1 AND pagos.mes<=mes1 PREVIEW NOCONSOLE NOWAITENDIF
IF a<0REPORT FORM datos_de_responsables.frx FOR pagos.n_dpto=thisform.n_dpto.value AND pagos.fecha_pago={} AND pagos.año<=año1 AND pagos.mes<mes1 PREVIEW NOCONSOLEELSEREPORT FORM datos_de_responsables.frx FOR pagos.n_dpto=thisform.n_dpto.value AND pagos.fecha_pago={} AND pagos.año<=año1 AND pagos.mes<=mes1 PREVIEW NOCONSOLEENDIF
Entonces en la tabla Pagos hay registros que cumplen con el filtro que estas definiendo?
Solo por curiosidad, esta condición se cumple?
PAGOS.FECHA_PAGO={}
Que tengas feliz día.
Saludos Carlos Alfaro
Entonces lo que se me ocurre es que uses el comando:
Brows for PAGOS.N_DPTO=ThisForm.N_DPTO.Value and PAGOS.FECHA_PAGO={}
También
Brows for PAGOS.N_DPTO=ThisForm.N_DPTO.Value and PAGOS.FECHA_PAGO={} and (str(PAGOS.Año,4)+str(PAGOS.MES,2)< str(M.YEAR1,4)+str(M.MES1,2))
Si te muestra registros entonces debería de funcionar todo lo que has hecho.
Bendiciones.