Solved

Export to txt Specification header issue

Posted on 2014-03-11
6
347 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 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
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…
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 …
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…

825 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