Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prevent ODBC password

Status
Not open for further replies.

wichtel

Programmer
Apr 7, 2005
12
CH
How can I prevent Access to ask the password each time I import a table with ODBC? I used this code to get the tables:

DoCmd.TransferDatabase acImport, "ODBC Database", "ODBC;Database=dora;UID=test;PW=test;DSN=dora", acTable, Me.Type, "pb6", False[/COLOR][/COLOR][/COLOR]

Thanks for your help!
Tim
 
Hello wichtel!

Are you talking about masking the password in your code? I don't think that the password can be accessed after you import a table.

Also, do you have to import rather than just connect?

Thanks

He who has knowledge spares his words, and a man of understanding is of a calm spirit. Even a fool is counted wise when he holds his peace; when he shuts his lips, he is considered perceptive. - King Solomon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top