A user-defined function or a subroutine has the same name as a module
This type of error can occur even if the procedure is not contained in the module with the same name. To avoid this type of error, change the name of the procedure or function so that it is different from the name of any module that you have in the database or project.
An event for an ActiveX control uses OLE_COLOR for a parameter
When handling an event for an ActiveX control in a form, you may see this error if any of the events use
OLE_COLOR for a parameter.
If you have the source code for the control, change the parameter that is using
OLE_COLOR to a different type, such as
Long. Otherwise, you cannot catch the event of the control.