Results 1 to 4 of 4
  1. #1
    Tickland is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2017
    Posts
    3

    export fixed to txt with number column align right

    Hi,
    I have problem with exporting table to txt file, I cannot achieve to have one of columns formated as number to be aligned right in exported txt file.
    After export situation is:
    00000 221 2333 0091427636 12102001

    And I need to have it:
    00000 221 23330091427636 12102001



    I use command "DoCmd.TransferText acExportFixed" with predefined Specs in export.
    Could anyone advice how to do it?

    Thanks for support!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    It's a text file, why would alignment matter? If you export as fixed that means every field will have same number of characters. The export pads with following spaces. If you want to 'alight right' then have to pad with leading spaces.

    You want 2333 and 0091427636 combined?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Tickland is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2017
    Posts
    3
    I need it aligned right in a reason that exported txt file is used as import file for another application which require exact specification I mentioned above.
    And yes, I can say that I need 2333 and 0091427636 combined.
    Thanks

  4. #4
    Tickland is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2017
    Posts
    3
    Have found solution.
    https://expertreplies.com/acc2000-ho...o-a-text-file/
    Thanks for support

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

Similar Threads

  1. Replies: 4
    Last Post: 03-01-2015, 11:31 AM
  2. Align text in a field column.
    By israellawndale in forum Access
    Replies: 1
    Last Post: 08-16-2011, 06:18 PM
  3. Replies: 1
    Last Post: 04-13-2011, 12:11 PM
  4. export query to fixed width text
    By eladz949 in forum Import/Export Data
    Replies: 1
    Last Post: 02-08-2011, 07:28 AM
  5. export query to fixed width text
    By eladz949 in forum Import/Export Data
    Replies: 5
    Last Post: 01-01-2011, 03:28 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