ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Can I pass the logon credentials in a macro to a ODBC query (https://www.excelbanter.com/excel-programming/422476-can-i-pass-logon-credentials-macro-odbc-query.html)

Peter Cooling

Can I pass the logon credentials in a macro to a ODBC query
 
I have a spreadsheet with query to an ODBC data source

Each time the spreadsheet is opened and query refreshed it prompts for the
USERNAME an PASSWORD which in this instance are both blank.
Is there a way to pass the logon credentials in a macro? or other way of
avoiding the prompts?

Thanks


--
Thanks

ward376

Can I pass the logon credentials in a macro to a ODBC query
 
If you're using MS Query, you can save the password in the query using
the External Data Range dialog.

Cliff Edwards



All times are GMT +1. The time now is 03:40 AM.

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