Solved

Export to txt Specification header issue

Posted on 2014-03-11
6
350 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

688 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