Results 1 to 3 of 3
  1. #1
    Dan Hugos is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Location
    Jim Thorpe, PA
    Posts
    28

    Two Problems Involving Access 2010 Runtime on an XP Machine

    I am running an ACCDE using Access 2010 Runtime on an XP machine. I have two issues:



    #1:

    It apparently fails when the application hits code that tries to set up an ADO connection, and it then gives me this error message:

    Class Does Not Support Automation or Does Not Support the Expected Interface

    I have seen several posts here and elsewhere regarding this problem, but a haze of suggested answers. At least in this instance, maybe we can help out with a definitive answer, since Microsoft doesn't seem to give us one, at least that I can find.

    I know that I can run some VBA code, because I can make an ACCDE out of a simple, "Hello World" database with a little bit of DAO code in it. I would agree with other posters that it's ADO that is giving me the problem and returning the error message. Also, another application runs fine in the Runtime environment.

    That is, until it encounters problem #2:

    #2:

    I try to click a dropdown box with an expression as a RowSource: SELECT DISTINCT WireWeightSpecs.PartNo, IIf(IsNull([Bunches]) Or Trim([Bunches])="",[Strands] & " x " & [Gauge],[Bunches] & " x " & [Strands] & " x " & [Gauge]) AS Construction FROM WireWeightSpecs ORDER BY WireWeightSpecs.PartNo, IIf(IsNull([Bunches]) Or Trim([Bunches])="",[Strands] & " x " & [Gauge],[Bunches] & " x " & [Strands] & " x " & [Gauge]);

    It runs fine in full Access 2010 and has been used for years in an Access 97 database, both MDB and MDE. It runs fine as an Access 2010 ACCDE on a Win7 machine.

    If I click various other dropdown boxes using Access 2010 Runtime on an XP machine, they work fine. In this particular case, it returns the following error:

    Function is not available in query expression (iif(IsNull([Bunches]) Or Trim([Bunches]) = "" .... and so on. You can see which function(s) are in question, IsNull and Trim.

    Why aren't they available?
    Last edited by Dan Hugos; 03-25-2015 at 09:15 AM. Reason: Make it easier to read

  2. #2
    Dan Hugos is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Location
    Jim Thorpe, PA
    Posts
    28
    Well, hallelujah - for the second problem - I tried the broken reference route, as often and rightly suggested, and it worked!
    I simply un-referenced and re-referenced Active X Data Objects 2.8 once again, recompiled and made the ACCDE, and then made sure the program that moves new versions down to the users' PC's was configured correctly, and everything worked fine. Nice that the issue was actually easy to fix.
    So now I'm working on problem number 1. That one seems to be more subtle.

  3. #3
    Dan Hugos is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Location
    Jim Thorpe, PA
    Posts
    28
    Something as simple as de-referencing the Active X Data Objects Library and re-referencing it cured both problems.
    I chose the 2.8 Library, but just for the heck of it tried it with 2.0 to test the idea that Access chooses the latest version available, and that worked fine as well.

    Many thanks. Seems rare that you actually find a simple solution!

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

Similar Threads

  1. Can Access 2010 Runtime Run on an XP Machine
    By Dan Hugos in forum Access
    Replies: 4
    Last Post: 03-23-2015, 01:27 PM
  2. Replies: 2
    Last Post: 10-15-2014, 04:23 AM
  3. Access 2007 and 2010 on same machine
    By SmartestIdiot in forum Access
    Replies: 6
    Last Post: 01-26-2014, 01:36 PM
  4. Runtime 2467 only on a Win 7 Machine
    By ilikebirds in forum Forms
    Replies: 3
    Last Post: 12-11-2012, 03:58 PM
  5. Replies: 1
    Last Post: 10-04-2011, 02:39 PM

Tags for this Thread

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