OCX issue with Windows 11 Pro verses Windows 11 Home

David Kuhn 1 Reputation point
2022-09-13T20:59:39.1+00:00

LED.OCX works great on my Windows 11 Home addition in VBA With Office 2016 Access and VB6

It will not work in office or VB6 under Windows 11 Pro

What gives???

Access Development
Access Development
Access: A family of Microsoft relational database management systems designed for ease of use.Development: The process of researching, productizing, and refining new or existing technologies.
899 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,805 questions
Office Visual Basic for Applications
Office Visual Basic for Applications
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Visual Basic for Applications: An implementation of Visual Basic that is built into Microsoft products.
1,496 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 44,546 Reputation points
    2022-09-19T08:14:22.17+00:00

    Hello there,

    You should check if this OCX requires some dependent DLL files that are missing. (Perhaps you can use some tools like Depends, Dependencies or DUMPBIN to check the dependencies).

    The below thread discusses the same issue and you can try out some troubleshooting steps from this and see if that helps you to sort the Issue.

    LED.OCX / Windows 11 https://learn.microsoft.com/en-us/answers/questions/1006172/ocx-issue-with-windows-11-pro-verses-windows-11-ho.html

    -----------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer--


  2. Albert Kallal 5,496 Reputation points
    2024-07-31T16:51:02.5766667+00:00

    If the led.ocx does not work in VB6, then it not going to work in Access.

    I would from the windows command line (run as administrator) try registering the .ocx file

     regsvr.exe c:\myactiveX\led.ocx
    

    So, the ActiveX control has to be manually registered on the computer before VB6 or Ms-Access can use such controls.

    Also, be aware that Office/Access now defaults to x64 bit version, and it is doubtfull that a x64 bit version of that led.ocx control exists. While VB6 is a x32 bit program ONLY, MS-Access now has both x32 and x64 bit versions available. So, if after registering the .ocx control, and VB6 works, but MS-Access does not? This then suggests that you are running x64 bit version of Access, and thus you have to un-install office/Access and re-install office x32 bits, or find a x64 bit version of the led.ocx control if possible.

    So there are no x64 bit computing versions of VB6 (or previous VB versions), but office and Access HAS made the jump to x64 bit computing. And you can't mix and match different versions of code, and for the led.ocx to work with x64 bit versions of office, you need a x64 bit version of that ocx file, or as noted, adopt x32 bit office/Access.

    Regardless of the above x32 vs x64 issue? You in both cases still have to register the led.ocx on your computer using regsvr.exe from the windows command line. (or use the provided installer that installed led.ocx on your computer).

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.