Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2008-10-29
3
Medium Priority
?
878 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 2000 total points
ID: 22900379
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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

971 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