Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

How to import data to MS Access

Thread Tools
 
Search this Thread
 
Old 16 June 2003, 11:25 PM
  #1  
rik1471
Scooby Regular
Thread Starter
 
rik1471's Avatar
 
Join Date: Nov 2001
Posts: 4,788
Likes: 0
Received 0 Likes on 0 Posts
Post

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.
Old 17 June 2003, 08:18 AM
  #2  
rik1471
Scooby Regular
Thread Starter
 
rik1471's Avatar
 
Join Date: Nov 2001
Posts: 4,788
Likes: 0
Received 0 Likes on 0 Posts
Post

btt.
Old 17 June 2003, 08:37 AM
  #3  
ChrisB
Moderator
 
ChrisB's Avatar
 
Join Date: Dec 1998
Location: Staffs
Posts: 23,573
Likes: 0
Received 0 Likes on 0 Posts
Post

Import into a new table and then use an Append Query to shove the new records into the existing table.
Old 17 June 2003, 08:52 AM
  #4  
DJ Dunk
Moderator
Support Scoobynet!
iTrader: (5)
 
DJ Dunk's Avatar
 
Join Date: Nov 2001
Location: Not all those who wander are lost
Posts: 17,863
Received 0 Likes on 0 Posts
Lightbulb

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
Old 17 June 2003, 09:06 AM
  #5  
ChrisB
Moderator
 
ChrisB's Avatar
 
Join Date: Dec 1998
Location: Staffs
Posts: 23,573
Likes: 0
Received 0 Likes on 0 Posts
Post

It's easy

What are you struggling on?
Old 17 June 2003, 09:16 AM
  #6  
DJ Dunk
Moderator
Support Scoobynet!
iTrader: (5)
 
DJ Dunk's Avatar
 
Join Date: Nov 2001
Location: Not all those who wander are lost
Posts: 17,863
Received 0 Likes on 0 Posts
Wink

Think I may have cracked it, I'll get back to you
. . . . .
Old 17 June 2003, 01:19 PM
  #7  
rik1471
Scooby Regular
Thread Starter
 
rik1471's Avatar
 
Join Date: Nov 2001
Posts: 4,788
Likes: 0
Received 0 Likes on 0 Posts
Post

help!
Old 17 June 2003, 02:14 PM
  #8  
Nicks VR4
Scooby Regular
 
Nicks VR4's Avatar
 
Join Date: May 2003
Posts: 1,165
Likes: 0
Received 0 Likes on 0 Posts
Post

as above
Import to a new table and use append query to add into existing table
Old 17 June 2003, 02:25 PM
  #9  
ChrisB
Moderator
 
ChrisB's Avatar
 
Join Date: Dec 1998
Location: Staffs
Posts: 23,573
Likes: 0
Received 0 Likes on 0 Posts
Post

What's the problem? Can you send me the data?
Old 19 June 2003, 10:21 PM
  #10  
rik1471
Scooby Regular
Thread Starter
 
rik1471's Avatar
 
Join Date: Nov 2001
Posts: 4,788
Likes: 0
Received 0 Likes on 0 Posts
Post

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


Old 19 June 2003, 11:44 PM
  #11  
JohnJ
Scooby Newbie
 
JohnJ's Avatar
 
Join Date: Jan 1999
Posts: 23
Likes: 0
Received 0 Likes on 0 Posts
Post

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.
Old 20 June 2003, 09:08 AM
  #12  
rik1471
Scooby Regular
Thread Starter
 
rik1471's Avatar
 
Join Date: Nov 2001
Posts: 4,788
Likes: 0
Received 0 Likes on 0 Posts
Post

- cheers
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
JimBowen
ICE
5
02 July 2023 01:54 PM
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
Abx
Subaru
22
09 January 2016 05:42 PM
Sam Witwicky
Engine Management and ECU Remapping
17
13 November 2015 10:49 AM
TylerD529
General Technical
2
09 October 2015 01:53 AM



Quick Reply: How to import data to MS Access



All times are GMT +1. The time now is 08:11 AM.