Solved

Access - Import from Excel with Commas

Posted on 2011-02-21
5
193 Views
Last Modified: 2012-05-11
Hi,

When importing into Access from Excel - cells in Excel that have delimiters/symbols such as comma or slash, are removed and the cell is then imported as blank in an Access table.

Example, a cell with "216, 217" becomes blank in Access table.

Please offer solutions to maintain the original Excel information.

Thank you
0
Comment
Question by:tahirih
  • 3
  • 2
5 Comments
 
LVL 18

Expert Comment

by:Richard Daneke
ID: 34944680
The key here is the field type.  You have two places where this can be set.  One is in the Excel import wizard, the other is in the Access table definitions.
Use the wizard to ensure that the field (column) type is General or Text.    Use Access table definition to ensure it is set to text.
Once imported, you can use queries or SQL to clean this up.
Or, before importing, you can use Excel Macros to clean this up.
0
 

Author Comment

by:tahirih
ID: 34944802
I generally just use the copy/paste from Excel to Access. The Excel columns were formatted as "General" - but the data did not transfer properly.

Does copy/paste work?

Thanks
0
 

Author Comment

by:tahirih
ID: 34945150
When I copy/paste one row from Excel to Access - the format remains. However, when I copy/paste the entire table - I am not able to keep the commas, etc.

Please advise, thanks.
0
 
LVL 18

Accepted Solution

by:
Richard Daneke earned 500 total points
ID: 34945505
Copy/Paste will work if your data is already properly formatted.  In explanation, if your column data is all of the same type:  text, dates, numbers.   Your example has mixed types.
The Import from Excel will start a wizard to permit data import and greater control over each column.
0
 

Author Comment

by:tahirih
ID: 34945527
No, it is not working, even with the columns formatted. Let me keep trying. Thanks.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

785 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