Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4259586
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:48:17+00:00 2026-05-21T05:48:17+00:00

So I have an MS Access application originally in a 2002-2003 format. Developed on

  • 0

So I have an MS Access application originally in a 2002-2003 format. Developed on a production network image, and when the image pushed the office upgrade, it became office 2007. So this is used in a very non traditional way…reps take it with them on company laptops enter data, and it automates complex ppt presentations, and excel worksheet for them (they love it….they need it). Data is not held in this like a database repository, just long enough to produce the automation they need and it works….saves them time. So Access is limited, and in the use case, really limited since i am using it in a way it certainly wasn’t intended to be used. I get that, but like I said so far, its working pretty well…..

The one bump I have run into is if someone has to use another computer for whatever reason (doesn’t happen often but it got me thinking), and say they have a version of 2002-2003 access, the tool will run, but once we get to the code routines/modules for ppt & outlook, the object libraries show MISSING because working on this tool seems to automatically cause the libraries to go up to the next available version, but not down to find the version…..

so originally when I made this….it used MS PowerPoint 11.0, and MS Outlook 11.0, and then when I had to start working in 2007 it became 12.0 for both, some instances I see it bumped up to 14.0, and none of the ups are a problem, but now since I have an image with Office 2007 out, and new files version I try to give them has the libraries defaulted to 12.0 and if they run into a scenario where they would take the file on a disc and use it on a computer that has office 2003, those libraries just come up missing and it doesn’t recognize the appropriate 11.0 object libraries anymore.

So finally my question….any suggesions (save the obvious and build a real app…lol…would love to….no $) to handling this? Is there code that can/will evaluate what libraries need to be set on opening the file using vba? Is that possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T05:48:18+00:00Added an answer on May 21, 2026 at 5:48 am

    There is Remove Method which you could use to remove a reference, then AddFromFile Method or AddFromGuid Method to add a reference.

    The AddFromFile approach was offered in answers to this recent StackOverflow question: Add references programatically However, make sure to read Tony’s answer … if you’re distributing your application as an MDE, you’re SOL.

    Consider switching to late binding for your PowerPoint and Outlook stuff. That way you won’t have to fiddle with references (no reference required for late binding). A drawback from late binding is you lose the benefit of IntelliSense during development. However, you can develop with early binding, then switch to late binding for deployment. Substitute the values where you used any named constants from the referenced library … debug will highlight any you overlook.

    A frequent counter-argument is that late binding imposes a “performance penalty”. However, I’ve yet to encounter a use case where the “slow-down” was large enough to be noticeable by a human observer.

    In any case I’ve been using late binding for years specifically to avoid the type of deployment issue you’re struggling with now.

    Edit: Here is an example which uses the Excel type library. I have it set to use early binding. To convert it to late binding, comment out the declarations under ‘* early binding … , and uncomment those under ‘* late binding …

    Also notice the 2 lines which include the named constant, xlAutomatic.

    Public Sub EarlyVsLateBinding()
        Dim strFullPath As String
        '* early binding requires reference to Excel type library *'
        Dim objExcel As Excel.Application
        Set objExcel = New Excel.Application
        Dim objBook As Excel.Workbook
        Dim objSheet As Excel.Worksheet
        '* late binding; no reference required *'
    '    Dim objExcel As Object '
    '    Dim objBook As Object '
    '    Dim objSheet As Object '
    '    Set objExcel = CreateObject("Excel.Application") '
    
        strFullPath = CurrentProject.Path & Chr(92) & "foo.xls"
    
        Set objBook = objExcel.Workbooks.Open(strFullPath)
        Set objSheet = objBook.Worksheets("bar")
        objSheet.Range("B1").Select
        With objExcel.Selection.Font
            .Name = "Arial"
            .FontStyle = "Regular"
            .Size = 10
            .ColorIndex = xlAutomatic 'named constant available with reference set '
            '.ColorIndex = -4105 'substitute xlAutomatic value so we drop reference
        End With
        objBook.Close SaveChanges:=True
        objExcel.Quit
        Set objSheet = Nothing
        Set objBook = Nothing
        Set objExcel = Nothing
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Access 2002 application which links an Oracle table via ODBC with
I have inherited a VB6/Access application that we have developed and sold for many
I have an Access 2007 application (previously in Access 2003) that is running into
So I have an Access application, and I'd like some forms to be maximised
I currently have an MS Access application that connects to a PostgreSQL database via
Is there a way to have an application access a SQL Compact database file
I have built a MS Access 2007 application that can create reports files in
I have to support an application that uses an access database. My development machine
I have a layered application in Java which has a multi thread data access
I have an object created in a host application and can access it remotely

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.