File not open

In a statement or function that requires an open file, you specified a file that is not open.

Use the Open statement to open the file.