Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. HOW TO IMPORT A TAB DELIMITED TEXT FILE INTO AN ACCESS DATABSE PROGRAMMATICALLY?

HOW TO IMPORT A TAB DELIMITED TEXT FILE INTO AN ACCESS DATABSE PROGRAMMATICALLY?

Scheduled Pinned Locked Moved C / C++ / MFC
databasecomalgorithmshelptutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vcseeker
    wrote on last edited by
    #1

    Hi , I am searching for a good sample code or article that takes a tab delimited file as input and imports it prograamatically in an access database.I don't want to loop through all the records in the text file and then put them individually into access.I want to import the whole file programmatically into an MS ACCESS table.May be it requires OLE. Any help will be appriciated. Thanks and regards. :)

    T 1 Reply Last reply
    0
    • V vcseeker

      Hi , I am searching for a good sample code or article that takes a tab delimited file as input and imports it prograamatically in an access database.I don't want to loop through all the records in the text file and then put them individually into access.I want to import the whole file programmatically into an MS ACCESS table.May be it requires OLE. Any help will be appriciated. Thanks and regards. :)

      T Offline
      T Offline
      Terry ONolley
      wrote on last edited by
      #2

      Connecting to the MDB using DAO classes and looping through the records in the CSV file and inserting them isn't that bad an idea. I think ODBC allows a DSN to be associated with a tab delimited file. It might be workable to assign a System DSN to the tab delimited file and then you could use ODBC to move the CSV file to an Access table. I'm going to live forever or die trying!

      B 1 Reply Last reply
      0
      • T Terry ONolley

        Connecting to the MDB using DAO classes and looping through the records in the CSV file and inserting them isn't that bad an idea. I think ODBC allows a DSN to be associated with a tab delimited file. It might be workable to assign a System DSN to the tab delimited file and then you could use ODBC to move the CSV file to an Access table. I'm going to live forever or die trying!

        B Offline
        B Offline
        basementman
        wrote on last edited by
        #3

        Or, simply define the text file as an ODBC DSN and create an external Link in acess. Then, you can do a standard insert/select query right in access.  onwards and upwards...

        V 1 Reply Last reply
        0
        • B basementman

          Or, simply define the text file as an ODBC DSN and create an external Link in acess. Then, you can do a standard insert/select query right in access.  onwards and upwards...

          V Offline
          V Offline
          vcseeker
          wrote on last edited by
          #4

          HI, THANKS FOR REPLY.BUT I COULDN'T UNDERSTAND YOUR SUGGESTION PROPERLY.WHAT DO U MEAN BY EXTERNAL LINK?HOW IT IS CREATED ,CAN U TELL ME THROUGH A SMALL SAMPLE CODE? THANKS AGAIN.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups