Results 1 to 8 of 8
  1. #1
    Az2025 is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2021
    Posts
    4

    Text file

    Hello everyone,
    Help please, I am generating a text file (Export specification, ). In the table I export, the field is text type, I have tried with long text also.

    Regards,
    Attached Thumbnails Attached Thumbnails filetxt.jpg  

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    is there a question?
    does it not make the text file using: docmd.Transfertext....

  3. #3
    Az2025 is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2021
    Posts
    4
    Thank you ranman256,

    I execute this instruction:
    DoCmd.TransferText acExportFixed, "BNL", "tblBcoL", "c:\Bcl\BANL.TXT", False

    Regards,

  4. #4
    ssanfu is offline Master of Nothing
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Still no question or what the problem is you are having.

    What program did you use to open the text file? If I use Notepad++, I can see the CR LF symbols if I set the view to "Show All Characters".

  5. #5
    Az2025 is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2021
    Posts
    4
    Dear ssanfu,
    Thanh you!
    My apologies, I use notepad. I have to export a table of 10 fields in a database (ms access 2016 64 bits), to a fixed text file, through an "export specification". The table has text and numeric fields and each line of records in the resulting text file has a length of 103. The last text field in the source table has a width of 32, in the resulting text file I get the error in the image. Well I don't know what I am doing wrong.

    Regards,

  6. #6
    ssanfu is offline Master of Nothing
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I've tried to replicate your TransferText command; the text file is created butI can't get Notepad to display the text file like you posted.
    Maybe post your dB?

  7. #7
    Az2025 is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2021
    Posts
    4
    Hello everyone,
    My apologies for the delay, there were connectivity limitations. Thanks for the attention to my request for help, especially to ssanfu, I have already solved, I had modified an old export specification, and it was the one I intended to use. I deleted it and created a new one and everything is fine. This topic is closed.

    Regards,

  8. #8
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,424
    No, the topic is still open. Please mark it as solved so that others don't waste time reading through it all just to find out it's solved. Thread tools button at the top.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Import and Conver From File Text File Into Table
    By maruli090484 in forum Import/Export Data
    Replies: 5
    Last Post: 01-19-2021, 04:25 AM
  2. Writing to a text file and linking table to text file
    By NightWalker in forum Programming
    Replies: 17
    Last Post: 07-21-2020, 04:35 PM
  3. Replies: 4
    Last Post: 09-09-2015, 12:10 PM
  4. Replies: 2
    Last Post: 12-27-2012, 09:37 AM
  5. Replies: 3
    Last Post: 07-30-2012, 02:16 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