Hi Linda
The name of the text file is really important. In the tutorial it's DatabaseOn.txt -- and that is the exact name the code goes looking for. If you use any other name for the text file you need to adjust the code in frmMonitor so that the exact name appears there as well.
I'm assuming...
There are a couple of things you could do.
One is to modify the batch file so that it also creates the DatabaseOn.txt file
Another is to add this function to a new module:
Function BackendPath() As String
Dim strPath As String
Dim tdf As DAO.TableDef
Dim i As Integer
For...