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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ODBC - Link

Status
Not open for further replies.

Lobmeister

Programmer
Jul 25, 2001
16
GB
I am building an Access data base which needs to link to a few Oracle based tables via ODBC. This works fine except everytime the database is opened and I try to access these tables it asks me for the Userid and password for this connection - is there any way I can automate this process so that on accessing these tables I do not need to pass these values manually ?
 
When you create the link, I believe there is a checkbox for saving the password. Terry M. Hoey
 
Unfortunately I dont have that option - i was wondering if it could be done in vba using connect strings perhaps
 
This is what I am using. As long as you don't close the connection, you don't have to re-enter your username and password.

strc = "dsn=DSNName;uid=" & Form_frmLogin.txtUserName & ";pwd=" & Form_frmLogin.txtPassword

Hope this helps

Kind regards
Borg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top