Solved

excel cannot edit sql in connection

Posted on 2014-04-14
5
743 Views
Last Modified: 2014-04-20
Dear experts,
I am adding a data connection in excel to another excel file, worksheet
both excel and work sheets are not protected
I cannot edit the SQL query
please see also the attachment
cannoteidtquery.png
0
Comment
Question by:mruff
  • 3
  • 2
5 Comments
 
LVL 16

Expert Comment

by:Jerry Paladino
ID: 40001167
The way you have established the connection using the ACE OLEDB provider, the SQL is edited in the Command Text (Befehistext) box.  The Edit Query (Abfrage bearbeiten...) button refers to a connection using ODBC and MS-Query.   If you want the MS-Query SQL editor then reestablish the connection using...   DATA / GET EXTERNAL DATE / From Other Sources / From MS-Query.    

Otherwise, using your existing connection, enter your SQL statement in the box labeled Befehistext (Commend Text).  

SELECT *
FROM AMOUNTFORMULA
WHERE Country = "France"
0
 

Author Comment

by:mruff
ID: 40001270
Hi I do not get it
How Do I do that:
 MS-Query SQL editor then reestablish the connection using...   DATA / GET EXTERNAL DATE / From Other Sources / From MS-Query.
In the connection dialog box I select New Source->DB connection wizard opens->More Extended->I have a list of driver
I select e.g. micorosft ole for ODBC ...But then I CANNOT connect to another excel
So How Do I get to from MS-Query?
THX
0
 
LVL 16

Accepted Solution

by:
Jerry Paladino earned 500 total points
ID: 40001560
Three attached files that should help...  

The PDF file has a series of screen shots
The EE-Excels Articles is the datasource
The EE-Excel Query file is the file that contains the MS-Query that reads the EE Articles data file.  

The connection string in this file is pointing to the file on my "Desktop" on my PC.  You could replace that directory with one on your PC and this sample should work for you on your PC.
EE---Excel-Query-with-MS-Query.pdf
EE---Excel-Query.xlsm
EE-Excel-Articles-2014-03-02-18..xlsb
0
 

Author Comment

by:mruff
ID: 40003729
thx a lot, strange I tried according the HowTo, with the EE--Exce-Articels ..
And got the message as attached
msquery.png
0
 
LVL 16

Expert Comment

by:Jerry Paladino
ID: 40003891
Did you start fresh and attempt to recreate the steps in the how to PDF file?
If so, at what step in the PDF screen shots are you receiving this message?  

I just started from scratch and recreated the query with no problems so I don't know where you are experiencing this message.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

856 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