You're welcome.
>That works, Thank you.
> That will teach me to take other peoples code for granted, in my project. <g>
>
>>See correct expression bellow. The GOMONTH() will not return empty date in your/this case unless its argument is empty date.
replace datefrom WITH GOMONTH(loData.dLastBillDate+1, -1)
>>
--sb--