Solved

excel cannot edit sql in connection

Posted on 2014-04-14
5
666 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

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

17 Experts available now in Live!

Get 1:1 Help Now