Visual Basic Reference Error Messages |
|
During a file-access or disk-access operation, the operating system couldn't make a connection between the path and the file name.
To correct this error
- Make sure the file specification is correctly formatted. A file name can contain a fully qualified (absolute) or relative path. A fully qualified path starts with the drive name (if the path is on another drive) and lists the explicit path from the root to the file. Any path that isn't fully qualified is relative to the current drive and directory.
- Make sure that you did not attempt to save a file that would replace an existing read-only file. If this is the case, change the read-only attribute of the target file, or save the file with a different file name.
- Make sure you did not attempt to open a read-only file in sequential Output or Append mode. If this is the case, open the file in Input mode or change the read-only attribute of the file.
- Make sure you did not attempt to change a Visual Basic project within a database or document.
See Also
Debugging Basics