Solved

Access 2013 - Transfer Table Information From One To Another

Posted on 2015-02-24
12
191 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 500 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

707 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