Excel 2016-Use MS Query Question

ctsuhako

New Member
Joined
Aug 15, 2002
Messages
21
Hello:

I would like to create and save a simple MS Query from Excel 2016 to an ODBC connected database. However, the table layout that I need to access changes constantly (the table is used to run a query once to be pulled into Excel and is overwritten each time it is used). Is there a simple way to do this? Thank you!
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
It's not 100% clear to me what the issue is.
From what I can tell your field names in your table change.
You don't need to refer to particular fields in your ODBC connection to pull the data to Excel, you can simply refer to the table you need.
It should build a connection string with [Data] referring to all the data in that table.

dbo_Schema{[Name="tablename",Kind="Table"]}[Data]

So to sum it up, just build your ODBC connection, just make sure you don't remove or pick any individual fields(columns) from the table.
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,259
Members
449,075
Latest member
staticfluids

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