Y
y770
I have a Access database with Linked ODBC Tables.
Every first time I open the form that uses these tables the ODBC connection
Dialog pops up asking for a password. I can manually enter the password and
get thru. I would prefer to hardcode the user name and pasword into the
database so the user will not have to re enter them every time.
I've tried the following:
CurrentDb.Connect = "ODBC;DATABASE='...'; DSN='...'; UID='...';
PWD='...';"
CurrentDb.TableDefs(i).Properties("Connect") "ODBC;DATABASE='...';
DSN='...'; UID='...'; PWD='...';"
CurrentDb.TableDefs(i).Properties.Refresh
CurrentDb.TableDefs(i).RefreshLink
Execution of last line still cause the connection failure. BTW, Error
message show the wrong User Name.
Any suggestions?
Every first time I open the form that uses these tables the ODBC connection
Dialog pops up asking for a password. I can manually enter the password and
get thru. I would prefer to hardcode the user name and pasword into the
database so the user will not have to re enter them every time.
I've tried the following:
CurrentDb.Connect = "ODBC;DATABASE='...'; DSN='...'; UID='...';
PWD='...';"
CurrentDb.TableDefs(i).Properties("Connect") "ODBC;DATABASE='...';
DSN='...'; UID='...'; PWD='...';"
CurrentDb.TableDefs(i).Properties.Refresh
CurrentDb.TableDefs(i).RefreshLink
Execution of last line still cause the connection failure. BTW, Error
message show the wrong User Name.
Any suggestions?