?
Solved

Access Export to ASCII text file not formatted properly

Posted on 2013-11-02
2
Medium Priority
?
1,201 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 51

Accepted Solution

by:
Gustav Brock earned 1500 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

How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

Question has a verified solution.

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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
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 …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Suggested Courses

771 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