Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Communicating with the OLE Server or ActiveX Control

MS Access 2010, Win 7 on a regular form
I didn't intentionally place any ActiveX or OLE things.. not even sure what they are. But anyways, whenever I put something in the code of a particular form, it says
"The Expression XXXXX you entered as the event property setting produced the following error: A problem occured while MyDB was communicating with the OLE server or Active X Control

Huh? No matter what I put in the form's code, this happens. I had an empty Form_Current() ONLY which still tripped this. There's a lot of formatting and work into the form, I'd rather not scrap it.. If I leave the code window completely empty (only Option Compare Database), it does not trip the error; however then my form is useless.

I've seen things about this being a language issue, but my other forms (running the same code techniques and most of the same code) are fine and it's an english Access with an english language PC. Ideas?

Code setting off the error:

Private Sub Form_Current()
End Sub

Seriously.

like image 593
StuckAtWork Avatar asked May 17 '12 14:05

StuckAtWork


People also ask

What is the OLE server?

An OLE server is essentially an application that exposes, or makes available, to another program its Properties and Methods. OLE server applications range from Microsoft Excel and Word to an application that Joe programmer found useful and is releasing to the public use.


1 Answers

I faced the same problem and I tried many things, the only (and fastest) solution that worked is to do the following: 1) Close the form that is causing the error. 2) Rename this form. 3) Duplicate it: Copy, then Paste, you will be prompted to set a name for the new form. Give it the original name. 4) Delete the original form that was causing the error. 5) Open the pasted form and it will work OK. This solution worked fine with my database... Regards...

like image 80
Abu Hassan Avatar answered Oct 21 '22 10:10

Abu Hassan