Solved

Tab delimit

Posted on 2004-04-05
3
936 Views
Last Modified: 2012-08-13
I need a file exported as text using tab-delimited, no quotes around text.  I created a spec in the "Export Wizard", called 'TabExportSpec' and ran the following:

DoCmd.TransferText acExportDelim, TabExportSpec, "ActionCodeResults", "C:\MFAtest\ActionCode2.txt", False

Access ignored the spec I created and used comma's and quotes anyway.  Apparently my spec is in the wrong place.  What Have I done wrong?

Warren Shore
0
Comment
Question by:wshore
[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 Comments
 
LVL 7

Expert Comment

by:donpricejr
ID: 10762452
Try changing "acExportDelim" to "acExportFixed".

-Don
0
 

Author Comment

by:wshore
ID: 10762679
Don:

This still produces an error, in this case 2511 "...action requires a specification". That's what I thought 'TabExportSpec' was for.  Is TabExportSpec in the wrong place?  Why isn't it recognized?

Warren
0
 
LVL 2

Accepted Solution

by:
joshco earned 100 total points
ID: 10762749
put "Tabexportspec" in quotes, right now you are passing it a null for the value which suggests to it that it doesn't need to use a spec.

DoCmd.TransferText acExportDelim, "TabExportSpec", "ActionCodeResults", "C:\MFAtest\ActionCode2.txt", False

-Josh
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

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
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 …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

739 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