Results 1 to 7 of 7
  1. #1
    WCStarks is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2016
    Posts
    314

    OLE or Active X Control Error

    A simple On Current Event code that used to work just fine, started producing an error yesterday, that I do not know how to resolve.

    Private Sub Form_Current()
    [Mem_Name] = [Surname] & ", " & [Given Name]
    End Sub

    While making sure the "Use Wizard Controls" was active, the only thing I can think of that I did earlier yesterday, that may be related at all, was under the "Design > Controls > Active X Controls", which I clicked on to see what it was about. But, not knowing how to do anything with the resulting list, I simply canceled it. That may not have anything to do with the error. I don't know.

    Click image for larger version. 

Name:	Active X error message.JPG 
Views:	16 
Size:	52.6 KB 
ID:	32410

    When I remove the On Current code, the error goes away. When I put it back in, the error returns. I have no idea how to find or fix the underlying problem, so the code will work again.

    Apparently this problem is even broader than I originally thought. I now get the following error on the same form when I attempt to go to a record:
    A problem occurred while Microsoft Access was communicating with the OLE server or ActiveX Control.


    Close the OLE server and restart it outside of Microsoft Access. Then try the original operation again in Microsoft Access.
    Last edited by WCStarks; 01-27-2018 at 01:31 PM. Reason: UPdate

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Have you run Compact & Repair?

    If that doesn't fix, might have to rebuild the form.
    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
    WCStarks is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2016
    Posts
    314
    I did. More than once. I also turned my computer off and rebooted it. From reading about this issue online, it sounds like the problem may be outside of Access. I just tried it on a different computer and it does not have the problem. So, the problem is apparently with my computer/OLE/Active X software. I just ran a virus check of my computer, but none found.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Ugh! Uninstall/reinstall Access?

    Is bizarre. I have looked at the ActiveX controls list a number of times and never caused issue with code.
    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.

  5. #5
    WCStarks is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2016
    Posts
    314
    I am not saying that just looking at the Active X Controls actually caused it. It suppose it did not. I just mentioned it, as it was the closest thing, I could think of, that might have been related.

    Now, I cannot use Access' Find record function either, or I get the second message is posted. I can still browse from record to record in the form, but I cannot use those functions.

  6. #6
    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 since the OnCurrent event fires, immediately a Bound Form loads, it kind of makes sense that Access would associate the error with that event.

    Linq ;0)>

  7. #7
    WCStarks is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2016
    Posts
    314
    Well, I don't think it would be related to language. However, I did change how the dates formatted in access. This same db would run without a problem on another computer on my same Office 365 account, and on my Son-In-Law's computer on a different 365 account, without any problem. But on my main computer, as long as that On Current code is there, the error occurs. I finally tried a backup copy of the db from that morning, and the error went away. Very strange.

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

Similar Threads

  1. Replies: 18
    Last Post: 04-20-2017, 04:09 PM
  2. Replies: 4
    Last Post: 02-18-2016, 12:06 PM
  3. Detect which control is active
    By Williams485 in forum Forms
    Replies: 4
    Last Post: 07-23-2015, 10:00 AM
  4. Active Control on Image
    By LonghronJ in forum Modules
    Replies: 12
    Last Post: 07-15-2015, 03:57 PM
  5. Active X control comes grayed out
    By jj1 in forum Access
    Replies: 1
    Last Post: 05-29-2014, 09:13 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