Solved

Having difficulty exporting table to csv file using schema.ini file

Posted on 2008-10-29
3
860 Views
Last Modified: 2013-12-25
I need to export microsoft access 2003 table into a csv file. I am using the TransferText Command and I need to set certain details for the output file. For exampleNumberDigits=4
TextDelimiter=none

I have set these protocols up in my schema.ini file. I have put the schema.ini file into the same folder as the csv file. The when I go to run the TransferText command I get I get error Run-time error '3625': The text file specification does not exist. You cannot import, export, or link using the specification. I have attached my vb code of the TransferText Command and also the schema.ini file
DoCmd.TransferText acExportDelim, "Z:\Swingframe Order Management System\Channels\schema", "ExportChannelsTable2", "Z:\Swingframe Order Management System\Channels\channels.csv"
 
 
 
Here is my schema
 
[Channels.csv]
ColNameHeader = True
CharacterSet = ANSI
Format = CSVDeLimited
NumberDigits=4
TextDelimiter=none
Col1=SalesOrderNumber Integer
Col2=Bin Text Width 50
Col3=Cut1 Double
Col4=Cut1NumberofCuts Integer
Col5=MaterialID Text Width 4

Open in new window

0
Comment
Question by:swingframe
[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 21

Accepted Solution

by:
oleggold earned 500 total points
ID: 22900379
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month10 days, 1 hour left to enroll

623 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