By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,041 Members | 1,793 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,041 IT Pros & Developers. It's quick & easy.

Import Excel file to Access Table

P: 78
Hello All,

This seems like it should be simple but I cannot figure it out.

I am trying to set up a button click to import an excel file to a temp table then run an append query to add it to an existing table.

I have gotten everything but one portion I need.

It will be done by different people on all different PC's. What I want to do is to pop up a file window to have them select the file to import and then finish the process.

This seems like it should be sooo Simple and I cannot get it. Below is the Import code I am using for that step.

Expand|Select|Wrap|Line Numbers
  1. DoCmd.TransferSpreadsheet acImport, Excel4, "Temp", , True
Any guidance would be greatly appreciated.

Oct 20 '08 #1
Share this Question
Share on Google+
3 Replies

P: 78
Any help is greatly appreciated on this. I know it seems simple but it has locked me down until I figure this out.

Oct 21 '08 #2

P: 78
I figured it out.

I needed to add a Function to display the window. If anyone needs a refernence just PM for it.


Oct 21 '08 #3

P: 49
Hi Nick,
I might be doing just that for my project. I am importing into an access table a bunch of excel sheets depending on the user's choice via a dialog box. I need all the rows imported except for one where it has the word "Total". So I was thinking of importing the whole sheet into a temp table and then appending to a permanent one. Where do you run your append query? do you do it where you write your TransferSpreadsheet method?
Jan 13 '11 #4

Post your reply

Sign in to post your reply or Sign up for a free account.