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