Solved

Access - Import from Excel with Commas

Posted on 2011-02-21
5
192 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
No, it is not working, even with the columns formatted. Let me keep trying. Thanks.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

728 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now