Function MC_LINK_TABLE_MANAGER()
On Error GoTo MC_LINK_TABLE_MANAGER_Err
Dim PASSWORD_TEXT As String
Dim CONNECT_STRING As String
Dim CONNECT_CHECK As String
PASSWORD_TEXT = InputBox("Enter new password:", "PASSWORD RESETTER")
CONNECT_STRING = "ODBC;DSN=PRD;UID=Dfunkt;PWD=" & PASSWORD_TEXT & ";DATABASE=PRD; AUTHENTICATION=;AUTHENTICATONPARAMETER=;"
CurrentDb().TableDefs("COMPANY").Properties("CONNECT") = CONNECT_STRING
CONNECT_CHECK = CurrentDb().TableDefs("COMPANY").Properties("CONNECT")
MC_LINK_TABLE_MANAGER_Exit:
Exit Function
MC_LINK_TABLE_MANAGER_Err:
MsgBox Error$
Resume MC_LINK_TABLE_MANAGER_Exit
End Function
|