Solved

Bulk csv import to Access 2003

Posted on 2004-09-02
3
680 Views
Last Modified: 2012-06-27
Hello

I was wondering if there is a way to bulk import csv files into different tables within one access 2003 database?

Can this be done programmatically? VBA?

Thanks

Herschel
0
Comment
Question by:Herschel_Solomon
  • 2
3 Comments
 
LVL 65

Expert Comment

by:Jim Horn
ID: 11964364
Create Import Specs manually to cover each import, give them a name, then write VBA code that performs all imports using...

DoCmd.TransferText acImportDelim, "Spec Name", "Destination Table Name", "File Name.csv"

Hope this helps.
-Jim
0
 

Author Comment

by:Herschel_Solomon
ID: 11964779
Hello Jim

Thanks for your feedback,

I’m new to access so please excuse if this sounds silly.

How do I create an import specs? As an example all my csv files will all be on my local PC under a directory called C:\Server_reports. The csv files will be named server1_A.csv, server2_A.csv, server1_B.csv serverC.csv etc etc. (it’s pretty random now that I think of it)

Also these server csv files will be produced on a monthly basis, I would like a table for every server however every monthly import should append data to the existing tables.

Any help on this will be much appreciated.

Thanks

Herschel
0
 
LVL 65

Accepted Solution

by:
Jim Horn earned 250 total points
ID: 11964863
File:Get External Data-Import, then select your .csv file, then there'll be an 'Advanced' button on the lower left.  Hit it and follow instructions.

Explaining beyond this is probably outside the scope of a single EE question.  Best advice I can give is to find an Access manual that describes it.  My favorite is the Litwin/Getz 'Access {your version} Developers Handbook'.

Might not be a bad idea to hire a contractor in your local area to set this up, then teach you Import Specs and VBA coding so you can maintain it. You'll be amazed how fast you can pick this stuff up with the right coach.

Hope this helps.
-Jim

0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sum with where criteria on a report 5 23
update query 4 22
Setting that's causing Access to crash 19 31
Importing Excel file into Access 5 18
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

789 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