Solved

Can't seem to import all of the text in a cell

Posted on 2014-09-16
3
159 Views
Last Modified: 2014-09-17
I have the following code in a onclick event of a command button on a form.  But the problem I'm having is with a certain cell in the Excel file.  It has a lot of copy in it but the import function seems to be cutting it off after 255 characters.  Can someone help me?  I need to import all of the copy in that cell.  The field in the table the Excel file is being imported into is a memo field.

Here's the import code:

        Set fd = Application.FileDialog(msoFileDialogFilePicker)
        With fd
            .InitialFileName = Environ("userprofile") & "\Documents\"
            If .Show Then
            DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "tblTempFieldNotesImport", .SelectedItems(1), False, "A1:B66"
            End If
        End With

Open in new window

0
Comment
Question by:SteveL13
  • 2
3 Comments
 
LVL 12

Expert Comment

by:danishani
ID: 40325689
You need the change the Field Type to Memo, because Text field is limited to 255 characters.

Hope this helps,
Daniel
0
 

Author Comment

by:SteveL13
ID: 40325702
It is a memo field.
0
 
LVL 12

Accepted Solution

by:
danishani earned 500 total points
ID: 40325814
Sorry about that, this is known issue with Excel import to Access.

Truncated data

I think this link explains the solution very well, work with a temp table and than import to the final table where you want to have the records reside.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

705 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

22 Experts available now in Live!

Get 1:1 Help Now