BUG: Access 97 Generates Invalid Code for OLE_COLOR in Event Handler (205673)
The information in this article applies to:
This article was previously published under Q205673 SYMPTOMS
When handling an event for an ActiveX control in an Access 97 form, you may run into problems if any of the events use OLE_COLOR for a parameter.
Specifically, you may get a message that states the following:
The expression "somename" you entered as the event property setting produced the following error: Function or interface marked as restricted or the function uses an automation type not supported in Visual Basic
*The expression may not result in the name of a macro, the name of a user defined function, or [Event Procedure].
*There may have been an error evaluating the function, event, or macro.
CAUSE
This is due to a limitation in the Access 97 product.
RESOLUTION
If you have the source code for the control, you need to change the parameter that is using OLE_COLOR to a different type like a long. Otherwise, you will not be able to catch the event of the control in Access 97.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 10/2/2003 |
---|
Keywords: | kbAutomation kbbug kbnofix KB205673 |
---|
|