Accept & Use ODBC Login

W

wpiet

How can I have a user enter login username & password to be used for multiple
ODBC connections? I have a workbook with multiple sheets, each with a DB
query. My macro steps thru each sheet, refreshing the data.
For each 'Selection.QueryTable.Refresh,' the user must re-enter id &
password. How can I modify this to have the user enter this info only once &
use it for each subsequent refresh?
 
P

Paul

This can be hard coded into the QueryTable connection string. However
there are security and confidentiality implications.

Paul
 
W

wpiet

Thanks, Paul. That is very helpful.
Sorry my post is repeated numerous times. Every time I tried to post, I got
an error saying the post was not received, so I'd try again a few hours
later. Now, I see they're all here.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top