[mso] Re: Importing Excel to Access

  • From: "Glenda Wells" <gwells@xxxxxxxxxxx>
  • To: <mso@xxxxxxxxxxxxx>
  • Date: Tue, 16 Aug 2005 13:52:46 -0400

Thanks for the additional 411 Graham.  It turned out to be the under
bars in the label of the Access table vs no under bars in the label for
the Excel data.  Once I made the two fields identical the import worked
like it should.  I haven't done any field size limitations (all fields
are 255 text) but probably should.

What I've been doing is organizing things I do routinely.  I have a
hosted database that I import to.  I have to go by the rules and
constraints of the hosting organization.  I also have data that comes
from various foreign sources.  The data in these sources has to be
manipulated to fit my hosted DB structure.  For each type of foreign
data I've created a blank table in Access.  I also have a master table
of the DB structure of the host DB. =20

I have a delete query for each of my foreign tables so when it's time to
import fresh data, I can clear the existing data. I also delete (clear)
the master which I use over and over, no matter what data I'm importing.
When the foreign tables are refreshed with the new data, I have a query
that extracts the information I need in the formats I need it and
appends it to the (empty) master table which I then export to the host
DB.

What I'm wanting to do is automate the Access import/export portion of
this monster once I've cleaned the data in Excel.

I've been doing several of the steps manually and of course I, being the
human being portion of the work, sometimes make mistakes.  Automation,
as far as I can take it, will eliminate some of the human error.

I'm documenting the various steps as I do them in both Word and
PowerPoint so I get a good picture of what's taking place.  Next, I hope
to examine those steps and try to figure out which can be automated.
The foreign data is usually a mess.  I have to add or delete columns as
required by the the host and format various fields to match, especially
dates, zip codes, phone numbers and so forth. Once the data is cleaned
up though I should be able to create a button in Access to import it to
the appropriate foreign table then append the data to my master export
table...at least it seems I should be able to...well, I'm sure it can be
done...whether or not I can do it, only time will tell.


-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On
Behalf Of Graham Jones
Sent: Tuesday, August 16, 2005 12:28 PM
To: 'mso@xxxxxxxxxxxxx'
Subject: [mso] Re: Importing Excel to Access

Hi Glenda

When you Copy and Paste into Access, it doesn't recognise Excel column
breaks, tries to put everything into the first field of the first record
in Access, and does what you say is happening because the Excel data
exceeds the maximum of 255 characters limitation of the Data Type Text
formatting.

Have you used the Import Table option from New? This should work if
everything else is the same as you imply.

You then select the existing table instead of the New table option
(around Step 4 of the Wizard). If Access doesn't like something, it
should then generate an Import Error table indicating what it is
objecting to - e.g.
Duplicates/Null values in the Primary Key column.

Graham



-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On
Behalf Of Glenda Wells
Sent: 16 August 2005 17:02
To: mso@xxxxxxxxxxxxx
Subject: [mso] Importing Excel to Access


I'm trying to import a small excel worksheet to an existing table in
Access.

All columns have the same names. All are formatted as text.

I can copy and paste the data to the existing Access table but when I
attempt to import I get the no help at all information message that an
error occurred and the data was not imported.

Any advice?  /g
*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx
or MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the
quotes) in the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will
also allow you to change your email settings to digest or vacation (no
mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group,
send a request to mso-moderators@xxxxxxxxxxxxx and you will be sent an
invitation with instructions.  Once you are a member of the files group,
you can go here to upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************
*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx
or MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the
quotes) in the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will
also allow you to change your email settings to digest or vacation (no
mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group,
send a request to mso-moderators@xxxxxxxxxxxxx and you will be sent an
invitation with instructions.  Once you are a member of the files group,
you can go here to upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************
*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in 
the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: