Results 1 to 7 of 7
  1. #1
    RayMilhon is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,067

    References in Access 2010

    If I look at the References under Tools in MS Access 2010. I have 6 that are checked. I'm trying to validate the user's machines because the database works perfectly on my machine but there are various errors on everyone else's machine. I want to double check that each computer has the same reference libraries linked. The problem is that when I open the References window the form is too small to display the full path of each reference. There are 2 that are larger than what's visible. There is no window expansion functionality in that window. How do I see the entire path for all 6 references?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Not sure what you mean by 'path' - you mean the full name listed in Available References? Maybe use the horizontal scroll bar?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Ray,

    Here's some older vba that may help.

    Code:
    '---------------------------------------------------------------------------------------
    ' Procedure : Get_References_In_This_Project
    ' Author    : user
    ' Date      : 2/18/2009
    ' Purpose   : List the references in the VBA Project and indicate where
    'the reference is OK or Is Broken (Missing)
    ' Get the name, description, full path and "Missing/Broken" for each reference
    '---------------------------------------------------------------------------------------
    '
    Sub Get_References_In_This_Project()
          Dim refIsBroken As String
    
          'Loop thru each reference in this VBA Project
    10    For Each ref In Application.VBE.ActiveVBProject.References
    20        refIsBroken = "OK"
          ' Get the Reference Name
    30    refname = ref.name
    40    refDesc = ref.Description
    50    refPath = ref.FullPath
          'Return True/False  indicating if Reference link is broken: True(Ref is missing) or False (Ref OK)
    60        If ref.IsBroken = True Then
    70            refIsBroken = "***Missing/Broken***"
    80        Else
    90        refIsBroken = "OK"
    100       End If
    110   Debug.Print refname & ":  " & refDesc & " - " & refPath & " -> " & refIsBroken
    120   Next ref
    
    End Sub

  4. #4
    RayMilhon is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,067
    Click image for larger version. 

Name:	References.jpg 
Views:	15 
Size:	111.2 KB 
ID:	22169

    In the above image you'll see towards the top which reference is checked below that is the file path to where the file is located and the name of the file. The space available is insufficient to display the full path.

    I will try that code block on Monday and let you know.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Oh, duh! I've never even noticed that and right in my face, even when I looked at References after reading your post. Yep, have to use code. Tried and it works. But I had to disable Option Explicit.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    RayMilhon is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,067
    Thanks June7 that worked perfectly. I did make the following adjustment Added The Dim statement: Dim ref as Variant, Refname as String, refDesc as string, refpath as string That allowed me to leave the Option Explicit active.

    Code:
    Sub Get_References_In_This_Project()
          Dim refIsBroken As String
          Dim ref As Variant, Refname As String, refDesc As String, refPath As String
          'Loop thru each reference in this VBA Project
        For Each ref In Application.VBE.ActiveVBProject.References
            refIsBroken = "OK"
          ' Get the Reference Name
        Refname = ref.Name
        refDesc = ref.Description
        refPath = ref.FullPath
          'Return True/False  indicating if Reference link is broken: True(Ref is missing) or False (Ref OK)
            If ref.IsBroken = True Then
                refIsBroken = "***Missing/Broken***"
            Else
            refIsBroken = "OK"
           End If
       Debug.Print Refname & ":  " & refDesc & " - " & refPath & " -> " & refIsBroken
       Next ref
    
    End Sub

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Yeah, I tried Dim ref as Reference, didn't like that, should have known to try Variant. Glad you got it working.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Access compile and check for references
    By jassie in forum Programming
    Replies: 5
    Last Post: 05-20-2015, 08:28 AM
  2. Replies: 6
    Last Post: 07-07-2014, 09:13 AM
  3. Replies: 0
    Last Post: 07-31-2012, 12:25 PM
  4. Sharepoint Access Services References
    By is49460 in forum SharePoint
    Replies: 0
    Last Post: 11-09-2010, 09:42 PM
  5. Best References on Access
    By evander in forum Access
    Replies: 4
    Last Post: 10-14-2010, 10:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums