Solved

Access Export to ASCII text file not formatted properly

Posted on 2013-11-02
2
1,154 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
2 Comments
 
LVL 49

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

778 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