importing excel text data into access memo fields

smithrd6

Board Regular
Joined
Dec 13, 2005
Messages
150
I have an excel spreadsheet that contains text data, large text fields that I want to import into access; however, as you know, access limits text fields to 255 characters. Is there vb coding to do this? I have tried changing the table fields in access to memo but this changes back to text as soon as the data is imported.

thanks for your assistance.....
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
If you import the data into an existing table instead of a new one, the data type will not change. Try using File > Get External Data > Import, and specify an existing table (with the Memo field already defined) as the destination.

Denis
 
Upvote 0
that works.....interesting thing is it duplicates entrys "I suppose" to capture the lengthy text content. To overcome this I am exporting the data back out to excell and filtering unique records and importing it again......
 
Upvote 0
If you already had the same data in Access before doing the import, you will have duplicates in that table. Teh solution under those circumstances is to
1. Import to a new table with the data types already defined, then transfer new or changed data over to the original table.
2. If you haven't done anything much with the original imported data, delete it and then run the import.

Denis
 
Upvote 0
Great info......the problem I have with importing to new table is the fields which have the extensive text info default to text fields in access rather than memo which truncates the data and limits those fields to 255.
 
Upvote 0
Great info......the problem I have with importing to new table is the fields which have the extensive text info default to text fields in access rather than memo which truncates the data and limits those fields to 255.

That's the reason for this... maybe I wasn't clear enough with my description.

1. Import to a new table with the data types already defined, then transfer new or changed data over to the original table.

1. Do the import once only into a new table.
2. Convert the required fields to Memo

Then, each time you import a batch:

3. Delete ALL records from this table
4. Re-run the import; this time you will not get truncation.
5. At this stage you can compare new imports to existing data in the main table, and append new records, either ignoring or updating existing records.

Denis
 
Upvote 0
Can I ask how you got a cell in Excel to hold more than 255 characters in the first place?
I'm wanting a large amount of text in excel imported into an access table, and was thinking I'd have to embed a word document in the spreadsheet for the user to input in to,..... or some such thing.
Any ideas welcome.
 
Upvote 0
That's the reason for this... maybe I wasn't clear enough with my description.



1. Do the import once only into a new table.
2. Convert the required fields to Memo

Then, each time you import a batch:

3. Delete ALL records from this table
4. Re-run the import; this time you will not get truncation.
5. At this stage you can compare new imports to existing data in the main table, and append new records, either ignoring or updating existing records.

Denis

This does not work - no amount of cajoling will keep Access (2007) from truncating Excel cell text. What is interesting is it does not truncate at the same point in the text after each attempt to import. Very, very frustrating
 
Upvote 0

Forum statistics

Threads
1,220,932
Messages
6,156,925
Members
451,386
Latest member
leolagoon94

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