A family of Microsoft relational database management systems designed for ease of use.
The message indicates Access does not know what lbox1 is. Maybe the previous name of a listbox?
On the highlighted line, replace lbox1 with:
Me.lstRprt
or
Me.lstToEprt
Review the line with lbox2 as well. It is about to fail the same way.
Did you not have "Option Explicit" at the top of every module in your code? Add it right now.
There are other things wrong with this code, such as the nonsensical first Do loop.