ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to find a query source (https://www.excelbanter.com/excel-worksheet-functions/75324-how-find-query-source.html)

TonyL

How to find a query source
 
I have a query to an external database but when I run the query it brings up
some anomalies. When I check the data in the database these anomalies do not
exist. I am suspecting therefore that the query is pointing to another
database, probably a backup. How can I find out what the source of the query
is? TIA
--
Tony

Ardus Petus

How to find a query source
 
with thisworksheet.querytables(1)
debug.print connection
debug.print sql
end with

HTH
--
AP

"TonyL" a écrit dans le message de
...
I have a query to an external database but when I run the query it brings

up
some anomalies. When I check the data in the database these anomalies do

not
exist. I am suspecting therefore that the query is pointing to another
database, probably a backup. How can I find out what the source of the

query
is? TIA
--
Tony





All times are GMT +1. The time now is 07:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com