Solved

Export to txt Specification header issue

Posted on 2014-03-11
6
348 Views
Last Modified: 2014-03-11
Hi, i have saved an import specification to use for export data to a txt file, but it's not outputting the headers, even i set the hasfields argument to true and setting the specification as-well to show first line as headers,
any help would be appreciated
0
Comment
Question by:yidel718
[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
  • 3
  • 3
6 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 39920909
try to redo or create a new import specification.
what version of access are you using?
0
 
LVL 1

Author Comment

by:yidel718
ID: 39920979
i tested in access 2007 but actual created in 2010, does it make a difference?
i tried several times to redo and re-create but no success
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 39921020
hmmm,...
< import specification to use for export data to a txt file>

it says here you are exporting to a text file, and using an import specification.
is this a typo?

you should be using an export specification
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
LVL 1

Author Comment

by:yidel718
ID: 39921068
how do i create an export specification ? (don't laugh... i did created in the same program an export spec. successful in the pest but seems to be that i forgot how to do it !)
0
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 39921090
1.right click on the table
2.select export > Text file
   click on Browse and locate the destination folder
3. (you can accept the proposed name or change it)
click Save, then click OK
4. In the export text wizard select the type (Delim / Fixed width)
5. Follow the wizard, before clicking on Finish
     5a .Click Advanced
6. In the Export Specification dialog box Field Information List, correct any descrepancies

7. click save as, give the specification a name <-- this is the specification name that you will use in the command line below

"ExportSpecName"  << sample name of export specification

DoCmd.TransferText acExportDelim, "ExportSpecName", "TableName", "C:\myCsv.csv", True
0
 
LVL 1

Author Closing Comment

by:yidel718
ID: 39921109
your detailed help is really appreciated
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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.
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 …

735 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