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 / September 2005

Tip: Looking for answers? Try searching our database.

Import a columnar report text file into access 2003

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Denny - 10 Sep 2005 19:19 GMT
I need to import a .txt file with the following format into access 2003

field1: data1a
field2: data2a
field3: data3a

field1: data1b
field2: data2b
field3: data3b

...
Douglas J. Steele - 10 Sep 2005 19:27 GMT
One way would be to use VBA to read the file line by line, and create INSERT
INTO SQL statement after you've read each record.

Another would be to import the data as is to a temporary table, and then try
to transfer the data from that temporary table into the desired table. Not
sure you'd be able to do this without some manual intervention, though.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

>I need to import a .txt file with the following format into access 2003
>
[quoted text clipped - 7 lines]
>
> ...
 
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.