S
salmonella
OK, I have an Access FE that I am connecting to a MySQL BE via linked tables.
Everything works fine however the user must enter a username and password
when connecting to the BE. To get around this, when the dB is opened I want
to reset the connection string for each linked table to one with the pw and
username, refresh the link (tablefefs.refreshlink), then set it back to the
string without the pw and username to secure it. I tried this on one table
and I could not change the table’s connection string.
To simplify things, if I run the following- should the connection string for
the linked table not be changed to “test�
Dim x As String
x = "test"
CurrentDb.TableDefs("table name").Connect = x
MsgBox "" & CurrentDb.TableDefs("table name").Connect
Can someone tell me what I am doing wrong?
thanks
Everything works fine however the user must enter a username and password
when connecting to the BE. To get around this, when the dB is opened I want
to reset the connection string for each linked table to one with the pw and
username, refresh the link (tablefefs.refreshlink), then set it back to the
string without the pw and username to secure it. I tried this on one table
and I could not change the table’s connection string.
To simplify things, if I run the following- should the connection string for
the linked table not be changed to “test�
Dim x As String
x = "test"
CurrentDb.TableDefs("table name").Connect = x
MsgBox "" & CurrentDb.TableDefs("table name").Connect
Can someone tell me what I am doing wrong?
thanks