Solved

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

Posted on 2004-08-12
6
477 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 11785046
yuo can export your query

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

Accepted Solution

by:
Rey Obrero (Capricorn1) 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

752 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