?
Solved

Exporting a table into a text file without the field names in quotes

Posted on 2004-09-24
2
Medium Priority
?
182 Views
Last Modified: 2006-11-17
I use the following code to export a table into a text file including the field headers. I need to however export the field headers into the text file without quotes e.g. "Field1" ---> Field1

DoCmd.TransferText acExportDelim, , "Table1", "C:\test.txt", True

I then rename the file for specific purposes using:

Name "C:\test.txt" as "C:\test.dli"

Does anyone know how to export the field headers without the quotes, or another way of removing the quotes?
0
Comment
Question by:Hodges
[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
2 Comments
 
LVL 41

Accepted Solution

by:
shanesuebsahakarn earned 100 total points
ID: 12145531
Define an import/export spec - manually export the table via the Export Wizard. Change the field delimiter to none. On the last page of the wizard, click Advanced and save the spec. Use the spec name as the second argument of the TransferText command.
0
 

Author Comment

by:Hodges
ID: 12158284
Thanks. Works wonders.
0

Featured Post

10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

Question has a verified solution.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
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…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

777 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