PC Review


Reply
Thread Tools Rate Thread

Import data from excel into access tables

 
 
Boss
Guest
Posts: n/a
 
      31st Mar 2008
I have 25 excel sheets with same format.
I wish to import the data from all the sheets in one access master table.

I am poor at coding and i am looking for a code which can do the following.
Import data from all the excel sheets kept in c:/ drive into one master table
in ms access.

The excel sheets have many worksheets but i am only looking fot the first
worksheet data named as "Full recon"

Their is nothing similar in the filenames of the 25 excel sheets, onty the
format is same.

Thanks a lot for the help in advance.
Boss


 
Reply With Quote
 
 
 
 
Roger Carlson
Guest
Posts: n/a
 
      31st Mar 2008
Try this:

Link each of the Full Recon tabs into your database. Name then sequentially
(Full Recon 1, Full Recon 2. etc). Then create a UNION ALL query which will
put them all together.

Select * From Full Recon 1
Union All
Select * From Full Recon 2
Union All
Select * From Full Recon 3
....etc.

The create either a MakeTable query (if you want them in a New table) or an
Append Query (if you want the data appended to an existing query) using the
Union All query as the table name.

If you're doing this on a regular basis, all you have to do is overwrite you
Excel spreadsheets with new files and run your final query.

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L

"Boss" <(E-Mail Removed)> wrote in message
news:286BF21E-7356-4574-9659-(E-Mail Removed)...
>I have 25 excel sheets with same format.
> I wish to import the data from all the sheets in one access master table.
>
> I am poor at coding and i am looking for a code which can do the
> following.
> Import data from all the excel sheets kept in c:/ drive into one master
> table
> in ms access.
>
> The excel sheets have many worksheets but i am only looking fot the first
> worksheet data named as "Full recon"
>
> Their is nothing similar in the filenames of the 25 excel sheets, onty the
> format is same.
>
> Thanks a lot for the help in advance.
> Boss
>
>



 
Reply With Quote
 
 
 
 
Boss
Guest
Posts: n/a
 
      31st Mar 2008
Thanks Roger,

Idea sounds goos to me..
will do this and let u know over the results..

Boss

"Roger Carlson" wrote:

> Try this:
>
> Link each of the Full Recon tabs into your database. Name then sequentially
> (Full Recon 1, Full Recon 2. etc). Then create a UNION ALL query which will
> put them all together.
>
> Select * From Full Recon 1
> Union All
> Select * From Full Recon 2
> Union All
> Select * From Full Recon 3
> ....etc.
>
> The create either a MakeTable query (if you want them in a New table) or an
> Append Query (if you want the data appended to an existing query) using the
> Union All query as the table name.
>
> If you're doing this on a regular basis, all you have to do is overwrite you
> Excel spreadsheets with new files and run your final query.
>
> --
> --Roger Carlson
> MS Access MVP
> Access Database Samples: www.rogersaccesslibrary.com
> Want answers to your Access questions in your Email?
> Free subscription:
> http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L
>
> "Boss" <(E-Mail Removed)> wrote in message
> news:286BF21E-7356-4574-9659-(E-Mail Removed)...
> >I have 25 excel sheets with same format.
> > I wish to import the data from all the sheets in one access master table.
> >
> > I am poor at coding and i am looking for a code which can do the
> > following.
> > Import data from all the excel sheets kept in c:/ drive into one master
> > table
> > in ms access.
> >
> > The excel sheets have many worksheets but i am only looking fot the first
> > worksheet data named as "Full recon"
> >
> > Their is nothing similar in the filenames of the 25 excel sheets, onty the
> > format is same.
> >
> > Thanks a lot for the help in advance.
> > Boss
> >
> >

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA for Access, import Excell files into Access tables George Microsoft Access External Data 7 8th Feb 2009 08:32 PM
VBA for Access, import Excell files into Access tables George Microsoft Access 5 1st Feb 2009 02:34 PM
Import word form data into multiple tables in Access =?Utf-8?B?U2hlbGwgRQ==?= Microsoft Access External Data 0 24th Sep 2007 08:38 PM
Cannot Import Excel Tables into Access 97 Sefton Area Microsoft Access 3 14th May 2005 09:41 AM
Re: I can import Access Tables. But, I can't import Access queries nickg420 Microsoft Excel Programming 0 5th Aug 2004 07:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:14 AM.