Bad file mode

You used an Open statement to try open a file in a mode that is incompatible with the file's access type. For example, opening a file for Output that has Read access causes this error.

If you intended to open this file, change either the file's access type, or change the For clause specification in the Open statement.