Solved

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

Posted on 2008-10-29
3
812 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
3 Comments
 
LVL 21

Accepted Solution

by:
oleggold earned 500 total points
Comment Utility
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now