Solved

Access Export to ASCII text file not formatted properly

Posted on 2013-11-02
2
1,113 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
Comment Utility
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 119

Expert Comment

by:Rey Obrero
Comment Utility
upload a db with the table...
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

744 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now