Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

ADODB CONNECTION EXTENDED PROPERTIES FOR DELIMITED FILES

Posted on 2006-05-19
1
Medium Priority
?
2,570 Views
Last Modified: 2008-08-13
I can use the following code to open a comma delimited text file. I am trying to find information on the extended properties string to allow a different delimiter. Example Ç or | or some other character depending on the text file.

Set cnnText = New ADODB.Connection


cnnText.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
       "Data Source=" & strFilePath & ";" & _
       "Extended Properties=""text;HDR=No;FMT=Delimited;"";"

0
Comment
Question by:mre531s
1 Comment
 
LVL 3

Accepted Solution

by:
jtm111 earned 1000 total points
ID: 16722942
FMT=Delimited

just add...

FMT=Delimited(,)
FMT=Delimited(|)
FMT=Delimited(;)

etc.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Suggested Courses
Course of the Month15 days, 15 hours left to enroll

580 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