Results 1 to 4 of 4
  1. #1
    Jai_c6 is offline Novice
    Windows 10 Office 365
    Join Date
    Oct 2020
    Posts
    3

    doCmd.transfertext hangs for minutes when accessing file on network drive


    I have some VB code that calls doCmd.transfertext to populate a table and when the text file is on the local C drive it’s instant but if I move the file to a network drive mounted by windows it hangs for a minute. This text file is only small and the behaviour is weird as hell. If I start copying a separate file of 800mb from the network drive it transfers at a reasonable rate however when MS access runs the command above to read the text files the copy speed of the other transfer drops significantly while that call hangs for a minute and then as soon as it is finished it picks up again. Something weird is going on and it has to be something to do with windows 10 or office. Note that when not running the command above windows reads and writes to the network drive very fast.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2016
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    Check the Similar Threads at bottom of the page for info.

  3. #3
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    I know it is not a fix, but you could try to add code to copy the file to your local drive, import it with TransferText then delete it afterwards.

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  4. #4
    Jai_c6 is offline Novice
    Windows 10 Office 365
    Join Date
    Oct 2020
    Posts
    3
    None of the similar threads relate to this issue

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

Similar Threads

  1. Error accessing file. Network connection may have been lost.
    By Cliff Clifford in forum Programming
    Replies: 8
    Last Post: 01-07-2016, 11:34 PM
  2. Accessing MDB on network drive
    By thecsmith70 in forum Access
    Replies: 6
    Last Post: 02-19-2015, 03:21 PM
  3. Docmd.TransferText Spec File Not Found
    By Patrick.Grant01 in forum Programming
    Replies: 7
    Last Post: 05-22-2012, 09:32 AM
  4. DoCmd.TransferText only if file is new
    By Coolpapabell in forum Programming
    Replies: 1
    Last Post: 10-14-2009, 01:57 AM
  5. Replies: 0
    Last Post: 05-24-2006, 09:26 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