473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

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 8607

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(MaxUserName)
lngLen = MaxUserName
If CBool(TSB_API_GetUserName(strBuf, 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(MaxUserName)
lngLen = MaxUserName
If CBool(GetComputerName(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********@hotmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.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
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...
1
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...
1
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...
1
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...
4
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...
0
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...
0
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)...
8
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...
11
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.