Solved

Export to txt Specification header issue

Posted on 2014-03-11
6
346 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
  • 3
  • 3
6 Comments
 
LVL 119

Expert Comment

by:Rey Obrero
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 119

Expert Comment

by:Rey Obrero
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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
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 119

Accepted Solution

by:
Rey Obrero 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
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…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

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

12 Experts available now in Live!

Get 1:1 Help Now