Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Import from Excel Truncates Memo Field to 255 Characters. WHY?????

Status
Not open for further replies.

PWD

Technical User
Jul 12, 2002
823
GB
Good afternoon. It seems that there have been many people asking this question over the years, but nothing that has given ME an answer. All I want to do is import from an Excel spreadsheet to a Memo field in an existing table using Access 2007 (but a .mdb database - if that makes ANY difference!). Even if I just try to walk through the Import Spreadsheet Wizard - to a NEW table, it only shows the first 255 characters.

If anyone has a solution, I'd be very glad to hear it.

Many thanks,
Des.
 
So I had a thought, "Start again with a brand new, blank database & see what happens."

If I Import & Create the tables from scratch, it seems to be OK (so far)!!

Des.
 
But now it's not :(

Des.
 
SOOOOOOO!

I went to Ken Snell's pages & had a look at
Code:
Write Data From an EXCEL Worksheet into a Recordset using Automation (VBA)

and, ahem, that seems to have done the job.

I'll confirm later.

Is there a "best" way of looping through an array of Worksheets & Tables with this code?

Many thanks,
Des.
 
You might want to search the web on your question. If you want Excel code to loop through all the worksheets in an Excel field, you might want to post in the VBA Visual Basic for Applications (Microsoft) forum.


Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top