The code attempted to assign a value to a read-only identifier. A read-only identifier cannot be assigned a value. For example, host-defined objects and external COM objects are read-only identifiers.
To correct this error
-
Do not assign values to read-only identifiers.