Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Access - Import from Excel with Commas

Posted on 2011-02-21
5
Medium Priority
?
203 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

671 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