Try something like this (for SQL) -
Substitute the field you use for OVERDUE (TargStartDate is used here)….
and (TargStartDate <= convert(date,DATEADD(MM,DATEDIFF(MM,-1,getdate()),-1),101))
------------------------------
~Nikolaus Despain CRL
Aquitas Solutions
------------------------------