Solved

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

Posted on 2004-08-12
6
442 Views
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?


Lou
0
Comment
Question by:Lou Dufresne
  • 3
  • 3
6 Comments
 
LVL 119

Expert Comment

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

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

Accepted Solution

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

Assisted Solution

by:GRayL
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.
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 119

Expert Comment

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

Expert Comment

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

Expert Comment

by:GRayL
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?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Familiarize people with the process of utilizing SQL Server views 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 Access…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

911 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