Solved

IMPORTING EXCEL FILE AFTER USER CHOOSES FILE INTO NEW TABLE

Posted on 2011-09-23
8
196 Views
Last Modified: 2012-08-13
I am looking to have the user open access click a button and have them choose a xls file.  Then import it into a table, this table can be overwritten each time.  The files will be the same formatt every time, just different data in them.

thanks
0
Comment
Question by:BOULMAN
  • 5
8 Comments
 
LVL 3

Expert Comment

by:Marakkar
ID: 36591305
Rather, I propose you link to an external table. You can overwrite it the xls file while not in use.  Link remains valid as long you do not disturb the name and path.  Use a button to open this linked table.
0
 

Author Comment

by:BOULMAN
ID: 36591323
The issue I have is the file will be created each day and I need the users to be able to import the data with little effort.  I could have the user rename the file each day, but I would like to find an option that minimizes steps.
thanks
0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 36591357
BOULMAN,

Even if the file is recreated each day, if it keeps the same name/path then Marakkar's suggestion looks fine to me...

Patrick
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:BOULMAN
ID: 36591384
It will have a different name.  But in my searchs I found a partial solution. On 8/6/08 capricorn1 came up with a sample db the does almost exactly what I need.  The only problem is it does not over ride the old imported table here is the code
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "Import", Me.txtFileName, True
Is there a way to modify this to override the existing "import" table?

thanks
0
 

Author Comment

by:BOULMAN
ID: 36591488
Ok I got it.  Using the post from capricorn1 on 8/6/08 I was able to take that sample db then create a update query removing the data in the table before importing it.  Should I give create to capricorn1 since it got me started on the right path?
0
 

Accepted Solution

by:
BOULMAN earned 0 total points
ID: 36592342
I took the database from capricorn1-http://filedb.experts-exchange.com/incoming/2008/08_w32/48122/ImpbrowseExcel.mdb
I then utilitzed an update query on the onclick event for the Select File button to remove any existing data within the import table.
0
 

Author Closing Comment

by:BOULMAN
ID: 36813383
Database buillt was useful in importing data.  Minor changes were made to meet my needs.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now