本帖最后由 tunder110 于 2013-03-13 17:00:24 编辑

解决方案 »

  1.   

    Path/File access error  During a file-access or disk-access operation, the operating system could not make a connection between the path and the file name.
     
    To correct this error1.
    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 is not fully qualified is relative to the current drive and directory.2.
    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.3.
    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.4.
    Make sure you did not attempt to change a Visual Basic project within a database or document
      

  2.   

    If Dir(App.Path & "\nflag") = "" Then
        MkDir (App.Path & "\nflag")
    End If这样试试
      

  3.   

    If Dir(App.Path & "\nflag", vbDirectory) = "" Then