Solved

Access Export to ASCII text file not formatted properly

Posted on 2013-11-02
2
1,181 Views
Last Modified: 2013-11-03
I have several tables that I wish to export, into fixed width ASCII, from an Access 2010 .accdb. I have built the "specification tables" for each and created a Macro to export the tables to the appropriate FTP directory. The Macro will be run many times and the results must be in the precise format of the specification table as the data will be imported into a database by my client.

Attached is a Word document that contains screen shots of the specification table, shots of the export Wizard and a screen shot of the exported data.

I have done this in the past, in other Access databases and had no problems however, this one has me stumped. I have re-created the specification table, compacted and repaired the database, exported the data tables to a new database but nothing seems to change the results.

Can someone help me to determine why the resulting .txt is not in fixed width columns. OR, provide suggested VBA code to accomplish an export, routinely, to a properly formatted text file.

Thanks
ExpExcDocument.docx
0
Comment
Question by:ergenbgr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 50

Accepted Solution

by:
Gustav Brock earned 500 total points
ID: 39618646
Can't tell, but don't export the table.
Create a query whery you use Format to force to requested format on the offending fields, then export the query.

/gustav
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 39618802
upload a db with the table...
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Access Form - Button Format Issue 13 46
Want my table columns to autofit. 7 61
office 2016 license quastion 3 43
Speed up Select Top n... Query 9 36
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question