Results 1 to 6 of 6
  1. #1
    gem1204 is offline Advanced Beginner
    Windows 7 Access 2007
    Join Date
    May 2010
    Posts
    32

    Active x Control when no access controls

    I received this error before


    "a problem occurred while microsoft access was communicating with the ole server or ActiveX control

    I received this error again on a database I had just created. I had created several buttons along with some code, then all of a sudden I got the active X control error every time I clicked on one of the buttons. I deleted all of the code and created a simple Msgbox("Click") and even that didn't work. I couldn't even create code behind another new button. This was a simple database I had just started on and there were only 4 tables and a couple of forms. I'm not using any ActiveX controls or anything other than just the standard controls. Compacting and repairing the database, compiling, opening and closing Access, restarting the computer.... none of those worked. I have one other form with some code in this database and that works just fine.

    In the past I've had to just re-create the form and basically start over.

    Has anyone else had this problem or does anyone know how to fix it or prevent it?

    I'm using ms access 2016

  2. #2
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    This type of error usually, but not always, associated with opening a Form, is apparently caused by all kinds of things, and, to the best of my knowledge, it is very seldom, if ever, actually connected with communicating with a OLE server or ActiveX Control!

    The most common cause, going by what I've seen online for the past ten years, has to do with using a non-English language with Access, and the need to set the language for non-unicode programs to that foreign language. Here's a link explaining this:

    You receive an error message when you start Visual Basic for Applications code in an Access database

    And always a possible solution, when things suddenly go phooey, for no apparent reason, is to create a new, blank Access file and Import everything into it.

    Linq ;0)>

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Sometimes weirdness just has to be attributed to corruption that cannot be explained and the only fix is to rebuild.
    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.

  4. #4
    gem1204 is offline Advanced Beginner
    Windows 7 Access 2007
    Join Date
    May 2010
    Posts
    32
    Thanks for the responses. After starting my most I ran across possible cause. I'm using dual monitors and opening the code view while the form is running can sometimes cause this error. I know that I sometimes do this even though its a bad practice. I have to admit that I do that often

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Why would having VBA editor open cause an issue? Never experienced this with dual monitors.
    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
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,742
    Try importing your existing db into a new empty db.

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

Similar Threads

  1. Active X controls from from FMS
    By gem1204 in forum Access
    Replies: 0
    Last Post: 04-14-2016, 06:52 AM
  2. Replies: 4
    Last Post: 02-18-2016, 12:06 PM
  3. Controls on subform not active/enabled
    By Williams485 in forum Forms
    Replies: 7
    Last Post: 07-15-2015, 11:02 AM
  4. Replies: 1
    Last Post: 05-22-2013, 02:34 PM
  5. Trusted Locations and Active X controls
    By justphilip2003 in forum Security
    Replies: 14
    Last Post: 05-17-2013, 08:02 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