Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Importing / Linking / June 2005

Tip: Looking for answers? Try searching our database.

Transfertext

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Julien Konan - 30 Jun 2005 16:37 GMT
Hi,
I want to import a .txt via VBA. this text need a specification and I use an
Access Project (and I don't think it's possible to save specification in a .
adp). so I don't success with the Transfertext method. Any idea?
John Nurick - 30 Jun 2005 22:12 GMT
Hi Julien,

You can use a schema.ini file instead of an import specification.
schema.ini must be placed in the same folder as the file you're
importing, and must have a section headed with the exact filename.

Documentation is towards the end of the Help topic "Initializing the
Text Data Source Driver" (under Microsoft Jet SQL Reference). These
links may also be useful:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/odbcje
tschema_ini_file.asp


Create a Schema.ini file based on an existing table in your database:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;155512

http://support.microsoft.com/default.aspx?scid=kb;EN-US;149090
http://www.devx.com/tips/Tip/12566

Access will create a schema.ini file automatically if you export to
Microsoft Word Merge format.

>Hi,
>I want to import a .txt via VBA. this text need a specification and I use an
>Access Project (and I don't think it's possible to save specification in a .
>adp). so I don't success with the Transfertext method. Any idea?

--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.