Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

excel cannot edit sql in connection

Posted on 2014-04-14
5
Medium Priority
?
968 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 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

885 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