Function DataInFile(FileName As String) As Boolean
Dim intFile As Integer
Dim strLine As String
intFile = FreeFile
Open FileName For Input As #intFile
Do
Line Input #intFile, strLine
If InStr(strLine, "no data to print") <> 0 Then
DataInFile = True
Exit Do
End If
Loop Until EOF(intFile)
Close #intFile
End Function