Results 1 to 2 of 2

Thread: Accessing Files Run time Error

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Location
    UK
    Posts
    24

    Post

    I have a procedure that opens a file when it is copied into a directory.

    Occasionally is the process tries to open the file before the file copy has finished I get Run Time Error, Permission denied.

    Could anyone help he with how to trap and work around this??

    Thanks in advance

    Neil

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Post

    theres's probably a cleaner way, but you could just put a
    do loop around your open statment



    Code:
    one error resume next
    do 
     open.....
     doevents
    loop until err.nuumber <> 75'or whatever  error number you were getting
    Mark
    -------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width