BOULMAN
asked on
IMPORTING EXCEL FILE AFTER USER CHOOSES FILE INTO NEW TABLE
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
thanks
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.
ASKER
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
thanks
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
Even if the file is recreated each day, if it keeps the same name/path then Marakkar's suggestion looks fine to me...
Patrick
ASKER
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
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "Import", Me.txtFileName, True
Is there a way to modify this to override the existing "import" table?
thanks
ASKER
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Database buillt was useful in importing data. Minor changes were made to meet my needs.