linked table

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pier117
    New Member
    • Sep 2008
    • 3

    linked table

    Where does ms access store passwords for linked tables? I have a table that occasionally loses it's password.
  • nico5038
    Recognized Expert Specialist
    • Nov 2006
    • 3080

    #2
    Open the linked table in design mode. The select View/Properties and in the description the link will be visible with the UID and Password.

    You can relink such a table using code like:
    Code:
    Dim td As DAO.TableDef
    
    For Each td In CurrentDb.TableDefs
      If td.name = "<YouLinkedTableName>" Then
         td.Connect = "<YourNeededLinkWithUserID/Password>"
         td.RefreshLink
      End If
    Next
    Just relace the <..> fields as needed.

    Nic;o)

    Comment

    • pier117
      New Member
      • Sep 2008
      • 3

      #3
      There is no password in there.... Is there another place to look?

      Comment

      • nico5038
        Recognized Expert Specialist
        • Nov 2006
        • 3080

        #4
        Not that I'm aware.
        Perhaps there's no UID/PW required for your excel workbook.

        When there is, you could try to add hem to the link.

        Nic;o)

        Comment

        Working...