Solved

Exporting Access table to tab delimited text file

Posted on 2014-12-08
3
168 Views
Last Modified: 2014-12-08
Is there a way to export an Access table to a tab delimited text file using vba?
I have the following line of code which creates the text file but it is comma delimited.

DoCmd.TransferText acExportDelim, , "PNLFile", "c:\temp\PNLFile.txt", False
0
Comment
Question by:dsoderstrom
3 Comments
 
LVL 34

Assisted Solution

by:PatHartman
PatHartman earned 250 total points
ID: 40487768
To create a tab delimited file, you'll need to create the export once using the wizard so you can build an export spec.  Once the Export spec is built and saved (don't forget to give it a good name when you save it), you can reference it in the TransferText Method.
0
 
LVL 18

Accepted Solution

by:
SimonAdept earned 250 total points
ID: 40487772
Hi, this has been asked before and Rey Obrero answered it
Link to key comment in previous Experts Exchange thread
0
 

Author Closing Comment

by:dsoderstrom
ID: 40487994
Thank you both
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

747 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

11 Experts available now in Live!

Get 1:1 Help Now