Access to Excel - Get External Data will not import memo field

Posted on 2004-08-12
Last Modified: 2012-08-14
I have an excel spreadsheet from which I use "Get External Data: to bring in data from MS Access97. I link through an ODBC connection to the MS access database and then select a query. The query I select is based on another query in access.  When I try to bring the data into the spreadsheet I get an error message that states "Invalid String or Buffer length"

If I run the query as a make table quer from within access and put the data into a table, I can then go to excel and use "Get External Data" and bring the data into Excel"

Is there any way to do this directly form the query in access without having to make a table in the access database first?

Question by:Lou Dufresne
  • 3
  • 3
LVL 119

Expert Comment

by:Rey Obrero
ID: 11785046
yuo can export your query

        DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, _
         "YourQuery", "C:\ExcelName.xls", False
LVL 119

Accepted Solution

Rey Obrero earned 400 total points
ID: 11785108
Get External Data means you are getting the data from a source to Access table.
LVL 44

Assisted Solution

GRayL earned 100 total points
ID: 11785386
capricorn1: He is in Excel and using Get External Data in the Data tab of the Excel Menu.

I do not believe you can import an Action query directly. In the MakeTable case, the data do not exist until after the query is run, at which time you can import the table. You should be able to import any Select query directly from Access without running it. I have Access 2000 and tried a few cases before answering this post. Select queries imported okay. If you can change the maketable query to a select query, you should be able to import the select query straight off.
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

LVL 119

Expert Comment

by:Rey Obrero
ID: 11785428
In excel you don't use get external data it is Import External Data.
LVL 44

Expert Comment

ID: 11786022
capricorn1: I just checked - you owe me a beer!
LVL 44

Expert Comment

ID: 11820889
Ldufresne19: Thanks for the points but I'm still confused as to what you were trying to do. Are you in Excel importing from Access or are you in Access exporting to Excel? In either event my comment about exporting action queries I believe to be true. What did you finally wind up doing?

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

757 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

13 Experts available now in Live!

Get 1:1 Help Now