Results 1 to 6 of 6
  1. #1
    shabar is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    66

    File Path Issue

    Hi All

    I a have following path in my code. There J is a mapping drive



    FileName = "J:\Business Projects\Ancillary\T1.txt"

    Shell """" & FileName & """"


    Even with the above it gives file not found run time error 53

    What could be the reason


    Cheers

    Shabar

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    One thing: you are using the syntax with """" as if filename is a control on a form. if file name is being defined as a string variable in your vba stack of code you would not need the quotation marks.....

    maybe helps a little....

  3. #3
    shabar is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    66
    Hi NTC

    Thax for your reply

    But even without that (after removing Shell ....) it doesn't work


    cheers

    shabar

  4. #4
    shabar is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    66
    This issue is occurring when the file is in mapping drive. In my case file should be there

    So is there any resolution for this type of scenarios



    Cheers

    Shabar

  5. #5
    pirabkao is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    1
    Quote Originally Posted by shabar View Post
    This issue is occurring when the file is in mapping drive. In my case file should be there

    So is there any resolution for this type of scenarios



    Cheers

    Shabar
    This might work. Try changing the code --> FileName = "J:\Busines~1\Ancillary\T1.txt"

  6. #6
    shabar is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    66
    Quote Originally Posted by pirabkao View Post
    This might work. Try changing the code --> FileName = "J:\Busines~1\Ancillary\T1.txt"

    Unfortunately even this doesn't work.

    Is it possible to add the text file to the VB project. I tried but its adding as a Module


    Cheers

    shabar

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 07-30-2012, 02:16 PM
  2. Replies: 10
    Last Post: 03-04-2012, 12:17 AM
  3. path\file access error 75
    By PRASANNA in forum Programming
    Replies: 2
    Last Post: 04-25-2011, 04:50 AM
  4. Replies: 1
    Last Post: 01-06-2011, 11:23 AM
  5. parametrize file path
    By ysrini in forum Access
    Replies: 3
    Last Post: 03-01-2010, 09:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums