Table of contents
TOC
Collapse the table of content
Expand the table of content

Member identifier already exists in object module from which this object module derives

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Identifiers used for object module members can't conflict with names already used in anobject module from which they derive. This error has the following cause and solution:

  • A procedure or data member identifier in your object module uses an identifier already used in the object module from which it derives. For example, a form has a BackColor property, so the following code would cause this error:

    ' Form already has a BackColor property. 
    Dim BackColor As Integer    ' Generates the error. 
    

Function BackColor() ' Generates the error. End Function



    Change the identifier that conflicts with the member identifier in your object module.

     **Note**  The following names cannot be used as property or method names because they belong to the underlying  **IUnknown** and **IDispatch** interfaces: **QueryInterface**, **AddRef**, **Release**, **GetTypeInfoCount**, **GetTypeInfo**, **GetIDsOfNames**, **Invoke**. Using these names causes a compilation error.

For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).
© 2018 Microsoft