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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Linking Excel Files in Access



 
 
Thread Tools Display Modes
  #1  
Old May 27th, 2010, 09:09 PM posted to microsoft.public.access.gettingstarted
watsonscotta
external usenet poster
 
Posts: 1
Default Linking Excel Files in Access

I have 4 CSV files that I need to somehow link together so that I can query
the data. I could manually add the data together but would prefer that is
was linked via Access so that it can be automatically updated each month (via
Peachtree). Some of the columns in each spreadsheet are the same (G/L
Account, Amount, Date, and Description). If I could pull these 4 areas from
each spreadsheet that would be perfect. My issue is (I think) that there is
nothing unique about each line so Access cannot capture all. Access can
automatically assign a unique number but it starts at 1 for each table. Any
ideas on what to do here? Should I be thinking of a different way to do
this? Thanks in advance for your help. Scott...
  #2  
Old May 27th, 2010, 10:47 PM posted to microsoft.public.access.gettingstarted
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Linking Excel Files in Access

Have you considered using a union query and adding a field designating which
Excel file the data is from?

Remember each part of the union must have the same number of fields and
matching datatype so add Null followed by a comma where one does not have a
field. If the first does not have field then you must add according to what
the datatype will be.
Like this --
"" AS MyTextField
0 AS MyNumberField
... etc.

--
Build a little, test a little.


"watsonscotta" wrote:

I have 4 CSV files that I need to somehow link together so that I can query
the data. I could manually add the data together but would prefer that is
was linked via Access so that it can be automatically updated each month (via
Peachtree). Some of the columns in each spreadsheet are the same (G/L
Account, Amount, Date, and Description). If I could pull these 4 areas from
each spreadsheet that would be perfect. My issue is (I think) that there is
nothing unique about each line so Access cannot capture all. Access can
automatically assign a unique number but it starts at 1 for each table. Any
ideas on what to do here? Should I be thinking of a different way to do
this? Thanks in advance for your help. Scott...

 




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 08:05 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.