M
Matthias Tolkmitt
Hi,
i wrote a script to connect automatically Oracle-Tables via ODBC to my
Access-Frontend.
it works!
but: every time i start my frontend, i have to type in login and pwd of the
oracle server, that stores my tables. I cannot understand, because in my
script, that connects the tables, i have included login and pwd in the
connection-string (see script below). i fount out, that my linked tables do
not safe the login /pwd a gave them, when they were connected. but why? what
can i do, that my tables hold the login-information, so that my user do not
have to type them in every startup of the access-frontend?
thanks a lot!
matthias
Public Function Connect_tracle_Table()
Dim tdf As TableDef
Dim db As Database
Set db = CurrentDb
Set tdf = db.CreateTableDef("TAB_CUSTOMER")
tdf.Connect = "ODBC;DRIVER={Oracle in OraHome92};
DBQ=dwh_0.erlf;
Server=dwh_0.erlf;
UID=powertbe;
PWD=power;
DSN=Oracle_Powertrain"
tdf.SourceTableName = "POWERTBE.CUSTOMER"
db.TableDefs.Append tdf
End Function
i wrote a script to connect automatically Oracle-Tables via ODBC to my
Access-Frontend.
it works!
but: every time i start my frontend, i have to type in login and pwd of the
oracle server, that stores my tables. I cannot understand, because in my
script, that connects the tables, i have included login and pwd in the
connection-string (see script below). i fount out, that my linked tables do
not safe the login /pwd a gave them, when they were connected. but why? what
can i do, that my tables hold the login-information, so that my user do not
have to type them in every startup of the access-frontend?
thanks a lot!
matthias
Public Function Connect_tracle_Table()
Dim tdf As TableDef
Dim db As Database
Set db = CurrentDb
Set tdf = db.CreateTableDef("TAB_CUSTOMER")
tdf.Connect = "ODBC;DRIVER={Oracle in OraHome92};
DBQ=dwh_0.erlf;
Server=dwh_0.erlf;
UID=powertbe;
PWD=power;
DSN=Oracle_Powertrain"
tdf.SourceTableName = "POWERTBE.CUSTOMER"
db.TableDefs.Append tdf
End Function