Solved

Import file to Access 2002 database through a form interface.

Posted on 2011-03-25
2
260 Views
Last Modified: 2012-08-14
Using a form, I would like the user to be able to import a file into an existing table.  I usually hard code the import from a set location / file name, but this time I thought I would give a different method a try and see how it works out.  I don't really want the user to get into the db to use the import function but thought I could put something on a form for them to naviagte through windows explorer to find the file they want to load.

I'll be importing two types of files (not into the same tables).  1 will be a .xls and the other a .txt (delimitted by seperated by | ).
0
Comment
Question by:vsllc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 35215441
test this sample db to locate and select the file
place your import codes in the click event of the Import button

ImportFileBrowser.mdb
0
 

Author Comment

by:vsllc
ID: 35380427
thanks!
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

717 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