Solved

Tab delimit

Posted on 2004-04-05
3
940 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

687 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