Excel Query Statement Amendment

mattpope697

New Member
Joined
Jun 24, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Dear All,

I need to amend the SQL statement code within my query but it's greyed out and unable to make any changes, see below:

Screenshot (73).png


For security reasons I have removed the server address and database name. I am obviously doing something wrong or have incorrect settings but does anyone know how I can rectify this issue, un-grey the SQL statement, and amend the code?

Many thanks in advance.

Matt
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Matt,

I tried for day to get the method you show to work for me. It was a pain in the A**.
not sure if you are willing to try VBA, if you are watch this video, its amazing!!
 
Upvote 0

Forum statistics

Threads
1,214,791
Messages
6,121,611
Members
449,038
Latest member
apwr

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top