Solved

Access - Import from Excel with Commas

Posted on 2011-02-21
5
199 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
[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
  • 3
  • 2
5 Comments
 
LVL 19

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 19

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

635 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