Copying from Excel to Access -- copies numbers, drops text

LxQ

Well-known Member
Joined
Feb 9, 2006
Messages
619
In one of the columns that I'm copying from Excel to Access I have both numerical values as well as text values. When I copy it into an Access table, the numerical values are copied into the table but the text values are dropped. The field in Access is set to "Short Text." The field is empty, nothing in it. If I go and update it, it will let me type in the text that was dropped. Any idea why it doesn't copy the text?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
This is a known issue where access assumes that you are going to be pasting all numerical values when the first value is numerical... A couple of ways round it:

1. Ensure the first row includes text in the value
2. Use paste special, Paste as Text
 
Upvote 0
Copying or importing from Excel to Access can be troublesome, as Excel and Access try to communicate and "guess" what the format of each field is in, based on the first few records. The issue is that it sometimes guesses wrong, for the reason stumac mentioned.

What I usually prefer to do is export my Excel file to a CSV or pipe-delimited file. Then, when I import it into Access, the Import Wizard pops-up, and I can explicitly declare the data type for each field.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,242
Members
452,623
Latest member
russelllowellpercy

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top