473,804 Members | 3,425 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error message about OLE server or ActiveX control

I have a BeforeUpdate Event Procedure as below and got an error message.

BeforeUpdate Event Procedure

If IsNull([Created]) Then
[Created] = Now()
Else
[LastUpdated] = Now()
End If

If Me.Dirty Then
Me.[UpdatedOn] = Makina_Izena()
Me.[UpdatedBy] = Giza_Izena()
End If

Error message

Microsoft Office Access

The expression Before Update you entered as the event property setting
porduced the following error: A problem occurred while Microsoft Office
Access was communicating with OLE server or ActiveX control.

*The expression may not result in the name of a macro, the name of a
user-defined function, or [Even Procedure]
*There may have been an error evaluating the function, event, or macro.

It happened on some pcs but not all. I found the pcs which work without the
error have comctl32.ocx installed and installed and registered it on other
units. It did not help the issue. I have no idea other causes to it. Can
someone shed any light to me for the possible causes and fixes.

Thanks!

Scott
Nov 8 '06 #1
2 8631

Scott wrote:
>
If Me.Dirty Then
Me.[UpdatedOn] = Makina_Izena()
Me.[UpdatedBy] = Giza_Izena()
End If

Error message

Microsoft Office Access

The expression Before Update you entered as the event property setting
porduced the following error: A problem occurred while Microsoft Office
Access was communicating with OLE server or ActiveX control.

*The expression may not result in the name of a macro, the name of a
user-defined function, or [Even Procedure]
*There may have been an error evaluating the function, event, or macro.

It happened on some pcs but not all. I found the pcs which work without the
error have comctl32.ocx installed and installed and registered it on other
units. It did not help the issue. I have no idea other causes to it. Can
someone shed any light to me for the possible causes and fixes.

Thanks!

Scott
Post the code for the two functions you're calling. the other stuff
doesn't use the comctl32 library at all. In other words, you've left
out the code that's causing the problem.

Nov 8 '06 #2
Thanks for your reply. The function code is as below:-

Function Giza_Izena() As String

'============== =============== ============
'User Name
'============== =============== ============
Dim lngLen As Long
Dim strBuf As String
Const MaxUserName = 255
strBuf = Space(MaxUserNa me)
lngLen = MaxUserName
If CBool(TSB_API_G etUserName(strB uf, lngLen)) Then
Giza_Izena = Left$(strBuf, lngLen - 1)
Else
Giza_Izena = ""
End If

End Function

Function Makina_Izena() As String

'============== =============== ============
'Machine Name
'============== =============== ============
Dim lngLen As Long
Dim strBuf As String
Const MaxUserName = 255
strBuf = Space(MaxUserNa me)
lngLen = MaxUserName
If CBool(GetComput erName(strBuf, lngLen)) Then
Makina_Izena = Left$(strBuf, lngLen)
Else
Makina_Izena = ""
End If

End Function

It appears to me that the form does not like any statement in before update
event procedure. I have no other event procedure in the form that linked
with a parameter query.

Scott

<pi********@hot mail.comwrote in message
news:11******** **************@ b28g2000cwb.goo glegroups.com.. .
>
Scott wrote:
>>
If Me.Dirty Then
Me.[UpdatedOn] = Makina_Izena()
Me.[UpdatedBy] = Giza_Izena()
End If

Error message

Microsoft Office Access

The expression Before Update you entered as the event property setting
porduced the following error: A problem occurred while Microsoft Office
Access was communicating with OLE server or ActiveX control.

*The expression may not result in the name of a macro, the name of a
user-defined function, or [Even Procedure]
*There may have been an error evaluating the function, event, or macro.

It happened on some pcs but not all. I found the pcs which work without
the
error have comctl32.ocx installed and installed and registered it on
other
units. It did not help the issue. I have no idea other causes to it.
Can
someone shed any light to me for the possible causes and fixes.

Thanks!

Scott

Post the code for the two functions you're calling. the other stuff
doesn't use the comctl32 library at all. In other words, you've left
out the code that's causing the problem.

Nov 9 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
12595
by: blacst | last post by:
I am using Access 2002 with either Service Pack 1 or 3. (I have seen this problem on 4 different OSs (NT, XP Home, XP Pro, Winows 2000) across 8 different machines) I have an ActiveX Object (Microsoft Common dialog Control, version 6) that, when I attempt add or copy the control in an access application, I get the above error. When attempting to use the Microsoft Communications Control, version 6.0 ActiveX object I get the error "The...
1
1629
by: John Gabriel | last post by:
I have set up a website and am testing ASPs. I have created a very simple ActiveX component with two interfaces: AboutBox() - displays About details calcpi() - returns 3.14159 Here is my configuration (All the most up to date versions except for Visual C++): Windows XP (Home Edition).
1
2626
by: Sreejumon [MVP] | last post by:
Hi, If you want to use the activex controls in your asp.net page, you ahev to use the single aprtment thread model. For that please add the "aspcompat=true" attribute the page directive. Let me know the result. Regards
1
1629
by: John Gabriel | last post by:
I have set up a website and am testing ASPs. I have created a very simple ActiveX component with two interfaces: AboutBox() - displays About details calcpi() - returns 3.14159 Here is my configuration (All the most up to date versions except for Visual C++): Windows XP (Home Edition).
4
7305
by: coosa | last post by:
Hi, I was installing SQL Server on my machine and during installation my PC freezed. It happens frequently on my machine. So i tried after restarting to install it again and since then i always get the same error message: "An error occurred while creating one or more registry entries. Please see C:\WINDOWS\sqlstp.log for details. The problem could be caused by a low registry quota condition" I have tried to clean the registry and i...
0
1278
by: swong4 | last post by:
Hi all, I am trying to use an ActiveX control on the server-side of an ASP.NET 2.0 application written in C#. The ActiveX control is a 3rd-party interface to a data feed used by my application and does not have a GUI. To accomplish this, I am trying to create a Windows.Form to host the ActiveX control with the intent that the events generated by the control could be used by the server for data processing.
0
23517
by: HKSHK | last post by:
This list compares the error codes used in VB.NET 2003 with those used in VB6. Error Codes: ============ 3: This Error number is obsolete and no longer used. (Formerly: Return without GoSub) 5: Procedure call or argument is not valid. 6: Overflow. 7: Out of memory.
8
15404
by: rdemyan via AccessMonster.com | last post by:
In 12 months of working on my app, I have never had a corruption problem with the backends, often with the front end but never the backends. So, of course, now that I'm planning to roll a new version of the app out next week, I suddenly had a problem. Here's the development configuration 1) Computer #1 a) Access 2000 - app is developed on this machine
11
34679
by: fniles | last post by:
We can not register an ActiveX control on our Vista 32 bit machine. When we do regsvr32 c:\windows\system32\citcp.ocx (this is a 3rd party ActiveX control), we got an error: citcp.ocx was loaded but the call to DLLRegisterServer failed with error code 0x80040200. I can successfully register MSVBVM60.DLL and MFC42U.DLL. We login to the machine with a user who is the Administrator. I read somewhere that I need to turn off the "User Account...
0
9704
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9571
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10318
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9132
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6845
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.