Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Access 2013 - Transfer Table Information From One To Another

Posted on 2015-02-24
12
Medium Priority
?
196 Views
Last Modified: 2015-03-12
Hello Experts,

I am new to MS Access 2013 and have so far built a Master List table.  Periodically, I need to add 20 - 25 new records to the end of the Master List table.  Basically like adding new customers to the end of a customer table.  I am looking for a simple, safe and reliable method to import, export, copy or transfer these new 25 records into the Master File table without manually entering the data.  The data is currently given to me by a colleague in an excel format.  I have tried importing excel file and appending to end of Master List table.  It gives me a number of errors.  I then created a new temporary access table and attempted to copy, import and export with little success.   Keep in mind, I am somewhat new to Access and have been teaching myself.  I am not currently at the level of using macros or code to accomplish this task (if possible).  As I stated earlier, I am under the assumption that their is a simple, safe and reliable method for adding or appending this data to the bottom of my Master List table.  Thanks...
0
Comment
Question by:idejjedi2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
12 Comments
 
LVL 120

Assisted Solution

by:Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1) earned 2000 total points
ID: 40628163
lets do it 1 step at a time
1. import the excel file to a NON existing table with this codes

 docmd.transferspreadsheet acimport,10, "NewTable", "c:\folderName\myexcelfile.xlsx", true, "Sheetname!"

2, create a query to append the imported records to the master list, making sure that you convert the field type from the NewTable to match the Master List table field type.

post back if you have any problem doing the above
0
 
LVL 24

Expert Comment

by:Eirman
ID: 40628204
You should firstly export your excel file as a CSV file (There's loads of info available on that).
Then import the CSV file into Access

If this gives you errors, you will have to re-arrange the field order in excel so the data types match up on importing.
0
 

Author Comment

by:idejjedi2
ID: 40628219
Hey Rey,

You have helped me out in the past and I always thank you for your assistance. I did not follow exactly what you said with the code you summarized above, but you put me on the right track.  For future reference for anyone else - I did the following:

1. Imported the excel file to a temporary database table.
2. Converted (if needed) field headers and data types to match the destination table that I want to "append" data to.
3. Opened Query Design and selected the newly created temporary database table.
4. Selected the fields that I wanted to "add" or "append "to the destination table.
5. Selected "Append" in the ribbon and selected the destination table and made sure that all the field names matched accordingly.
6. Ran the query...

I am not sure if their is a better more efficient way, but that is the way I accomplished the task.
0
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 40628248
following what you outlined above;
are you getting any error? give more detail explanation.
0
 

Author Comment

by:idejjedi2
ID: 40628266
Rey, the steps I outlined above worked perfectly for me.  Thanks again for putting me on the right track.
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 40628275
do you need more help?
0
 

Author Comment

by:idejjedi2
ID: 40628285
I will always need help with programming.  A lifetime learner... :) As far as this question, the steps outlined above worked exactly as I needed.  Thanks again.
0
 
LVL 24

Expert Comment

by:Eirman
ID: 40628290
Hi idejjedi2, Regarding your request for attention ....

Distribute the points as you see fit and if that means giving
all the points to Rey, I will not be in the least offended.

From the wording of your question, I thought you were seeking a non-code solution.
0
 

Accepted Solution

by:
idejjedi2 earned 0 total points
ID: 40628347
Eirman,  I am still learning the terminology in Access.  I utilized the Access ribbon, functions and design wizard to accomplish this task.  When I stated non-coding, I was specifically talking about macros and/or vba coding.  If I was confusing in my request, my apologies.  Again, thanks to everyone for their assistance.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

604 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