A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Import xls data



 
 
Thread Tools Display Modes
  #1  
Old February 21st, 2007, 11:23 PM posted to microsoft.public.access.queries
JK
external usenet poster
 
Posts: 220
Default Import xls data

I have a excell workbook that contains 4 sheets each sheet representing a
country and each have the same columns of data.

Entry Date - Client- Acct Name- Account Number - Invoice Num- Invoice
details-Invoice Amt

There are hundreds of rows and the data above needs to be imported into
several tables.Is there a way to avoid the manual entries into the tables?

Thank you
  #2  
Old February 22nd, 2007, 05:34 PM posted to microsoft.public.access.queries
GB
external usenet poster
 
Posts: 57
Default Import xls data

Yes, if you go to File-Get External Data, you can import Excel data into
Access Tables. You may have to import the same data several times to get it
into the tables you want.

"jk" wrote:

I have a excell workbook that contains 4 sheets each sheet representing a
country and each have the same columns of data.

Entry Date - Client- Acct Name- Account Number - Invoice Num- Invoice
details-Invoice Amt

There are hundreds of rows and the data above needs to be imported into
several tables.Is there a way to avoid the manual entries into the tables?

Thank you

  #3  
Old February 22nd, 2007, 05:57 PM posted to microsoft.public.access.queries
JK
external usenet poster
 
Posts: 220
Default Import xls data

That sounds simple enough but what happens when you want the client number as
the primary key since it is unique and this information is repeated many time
in the rows of excell? How does the import determine that the different row
headings belong in different tables?

"GB" wrote:

Yes, if you go to File-Get External Data, you can import Excel data into
Access Tables. You may have to import the same data several times to get it
into the tables you want.

"jk" wrote:

I have a excell workbook that contains 4 sheets each sheet representing a
country and each have the same columns of data.

Entry Date - Client- Acct Name- Account Number - Invoice Num- Invoice
details-Invoice Amt

There are hundreds of rows and the data above needs to be imported into
several tables.Is there a way to avoid the manual entries into the tables?

Thank you

  #4  
Old February 22nd, 2007, 06:59 PM posted to microsoft.public.access.queries
JK
external usenet poster
 
Posts: 220
Default Import xls data

I would like to know if when you do the import and the client number is the
primary key which is unique then how does access collect all the rows of data
in excell that belong to each of the unique client numbers?

"GB" wrote:

Yes, if you go to File-Get External Data, you can import Excel data into
Access Tables. You may have to import the same data several times to get it
into the tables you want.

"jk" wrote:

I have a excell workbook that contains 4 sheets each sheet representing a
country and each have the same columns of data.

Entry Date - Client- Acct Name- Account Number - Invoice Num- Invoice
details-Invoice Amt

There are hundreds of rows and the data above needs to be imported into
several tables.Is there a way to avoid the manual entries into the tables?

Thank you

  #5  
Old February 24th, 2007, 12:17 AM posted to microsoft.public.access.queries
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Import xls data

On Wed, 21 Feb 2007 15:23:18 -0800, jk
wrote:

I have a excell workbook that contains 4 sheets each sheet representing a
country and each have the same columns of data.

Entry Date - Client- Acct Name- Account Number - Invoice Num- Invoice
details-Invoice Amt

There are hundreds of rows and the data above needs to be imported into
several tables.Is there a way to avoid the manual entries into the tables?

Thank you


You'll probably want to create three new tables: Clients, with the
client and account information (this will be two tables in a
one-to-many relationship if each client can have multiple accounts);
Invoices (related one to many to Accounts); and InvoiceDetails,
related one to many to Invoices.

You'ld use File... Get External Data... Link to link to your
spreadsheet (either running it four times, linked to each sheet in
turn, or you could create four queries). You can then run Append
queries to migrate the data into your normalized tables.

I can't tell from here (since I can't see the data) which fields
should go in which table - does the EntryDate pertain to an invoice
detail or to an invoice? Is the Invoice Amt a sum of details? Are
there multiple columns of invoice details, or multiple rows? - so I
can't write the query for you, but don't hesitate to post back with
more details (perhaps a few rows of the spreadsheet, munged for
privacy if you wish).

John W. Vinson [MVP]
 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:24 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.