How to import data to MS Access
#1
I have a database with a table "Customers", which holds customers email addresses. I have a text file with 1000 addresses which I want to add to bottom of the the table, each email on a new record, how do I import the data? If I paste it into an excel spreadsheet and try to Import, it will only let me import it to a new table?
The column in the table is named custEmail
Anyone help??
Cheers,
Rik.
The column in the table is named custEmail
Anyone help??
Cheers,
Rik.
#4
Moderator
iTrader: (5)
Join Date: Nov 2001
Location: Not all those who wander are lost
Posts: 17,863
Received 0 Likes
on
0 Posts
This is exactly what I am trying to do. I have 150,000 records spanned across 3 tables (because it wouldn't let me load into a current table ) and am now trying to work out this append query. Talk about over complicated
Trending Topics
#10
I must be missing something here,
I have the database. 2 tables in question:
Table1 name, Imported: contains 1 field named emails.
Table2 name, sfCusomers: contains multiple fields of customer data, one of which is custEmail.
I am trying to append the data from table1 to the end of table2 in the custEmail field.
When I run the following query:
It asks me if i want to 697872 rows!!! There are only 1302 records in the imported table and 536 in the sfCustEmail table. Funnily enough these 2 multiplied = 697872, so I must be doing something wrong.
I'm a beginner when it comes to Access, so any assistance would be appreciated.
Rik
I have the database. 2 tables in question:
Table1 name, Imported: contains 1 field named emails.
Table2 name, sfCusomers: contains multiple fields of customer data, one of which is custEmail.
I am trying to append the data from table1 to the end of table2 in the custEmail field.
When I run the following query:
It asks me if i want to 697872 rows!!! There are only 1302 records in the imported table and 536 in the sfCustEmail table. Funnily enough these 2 multiplied = 697872, so I must be doing something wrong.
I'm a beginner when it comes to Access, so any assistance would be appreciated.
Rik
#11
Youneed to have a 'common' field in each table in order to link the two tables together, e.g. Unique Customer ID. Once you have this you can create a new field in your Customer Table to hold the email and use an 'update' query to populate this new field with the matching email from the loaded table.
The reason you are getting >600,000 record being added is because Access is linking each record in one table with every record in the other, therefore you are creating 1300ish * 500ish new records.
The reason you are getting >600,000 record being added is because Access is linking each record in one table with every record in the other, therefore you are creating 1300ish * 500ish new records.
Thread
Thread Starter
Forum
Replies
Last Post
Sam Witwicky
Engine Management and ECU Remapping
17
13 November 2015 10:49 AM