Results 1 to 8 of 8
  1. #1
    diegomarino is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    434

    runtime error 3125 on transfertxt

    hi, i have procedure in which i have this line

    Code:
          DoCmd.TransferText acLinkDelim, "PuntoEVirgola", "FilialiTemp", Fl, True
    "puntoevirgola" is a different delimitation character


    fl is "C:\Users\diego\desktop\2022-07-08_SUCCURSALI_BANCHE.csv"

    it gives me the 3125 runtime error.
    It worked before, then i formatted my pc and didn't work again, now i made some changes but i get always the same error

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    What is the description of error 3125?

  3. #3
    diegomarino is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    434
    here you are

    Click image for larger version. 

Name:	Immagine 2022-07-16 184355.png 
Views:	13 
Size:	9.8 KB 
ID:	48330

    that means: [nameoffile] is not a valid name. verify that not includes characters o punctuation not valid e that is not too long.


    i used a procedure too to change file name just in "filiali" but i had the same issue

  4. #4
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    Don't see anything wrong with the filepath/name as such - what happens if:

    - you create a file manually in file explorer on your desktop?
    - you hardcode the filepath/name rather than using a variable?

    and since you have not provided all the code - suggest debug.print fl before the transfertext line to check the whole path is provided

    however just googled your problem and found this link

    https://techcommunity.microsoft.com/...th/m-p/3572587

  5. #5
    diegomarino is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    434
    ok, i think it's a bug, damn. hope they solve soon

  6. #6
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    That link mentions problem with previous spec?
    Recreate the spec and try that?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  7. #7
    diegomarino is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    434
    i deleted the row of my spec in the query and recreated that, no result, same error

  8. #8
    diegomarino is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    434
    i think the only way is to uninstall latest updates, i'm trying to do that but even if i uninstall it i find always the last update when i restart the pc. i set updates paused for a week

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

Similar Threads

  1. Replies: 8
    Last Post: 01-19-2023, 09:07 AM
  2. Replies: 4
    Last Post: 02-17-2016, 01:53 PM
  3. Replies: 2
    Last Post: 08-22-2015, 11:26 AM
  4. Replies: 2
    Last Post: 10-15-2014, 04:23 AM
  5. Replies: 13
    Last Post: 06-12-2012, 09:52 PM

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