Solved

Link to Excel data, make a report

Posted on 2014-01-30
4
87 Views
Last Modified: 2015-04-03
Experts,

I have a flat file from the companies db.
I want to make a report off of it.

Is it better to link to the excel file or import it?  

I seem to remember there could be naming issues (error msg boxes) if imported and access wants to change the names of the columns.  Not sure if you get this error if linking.  

any other tips I would appreciate as I have never done this.

thank you
0
Comment
Question by:pdvsa
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
SarahDaisy8 earned 250 total points
ID: 39822190
Hi Pdvsa,

I've come across a similar question with my daily data imports.  I've always preferred to import the data into the database because often times I need to edit the data or perhaps it's slower to link it.  Are you going to be routinely using the same file or getting a new file?  

If you are getting a new file daily, weekly, etc. you can automate the process and even change the names of the fields using VBA prior to importing the data.  I've done this on several occasions.  This allows me to control the names of my fields because a lot of times they are named something funny and I can't use it.  

Let me know if the automation of importing the data would be helpful to you and I can post some of my VBA code.  

Hopefully I've understood what you are looking for.  

Sarah
0
 
LVL 47

Assisted Solution

by:Dale Fye (Access MVP)
Dale Fye (Access MVP) earned 250 total points
ID: 39823995
If all you need to do is report on what is in the spreadsheet, and it doesn't have excess header rows (1 row only), then linking to the spreadsheet using the

DoCmd.Transferspreadsheet

method is the way I generally do it.  Look that up in the Access Help.

As Sarah mentions, you can automate this process to allow you to select the specific spreadsheet and give it a consistent local "linked table" name so that your queries and reports won't have to change when the source file does.
0
 

Author Comment

by:pdvsa
ID: 39835471
Sorry for my late reply.  On vacation at the moment.  

If I need to edit the data, can I do this with the link or is it better to import?  I probably won't have to edit the data but there could be a case where I might.  I think if I click the linked table it might display as a table inside of access and I can edit if not mistaken.

Thank you
0
 

Author Comment

by:pdvsa
ID: 39857153
Ok I have this about done now.  

Just one more question:
Should the excel data have an [ID]?   currently the raw excel data has no [ID].  I think I will need one if I want to make a clickable hyperlink to the record to modify the record instead of manually finding it in the thousands of rows.  Not sure how to best approach this since the raw data would have to be modified and I would prefer for it not be be modified if not easily done and done automatically.  Another dept will use this and they dont know anything about Access.  

thank you for your advice....
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now