I have a program that works perfectly.
It is in use, so I have done modifications on another copy of it. Tomorrow morning I want to copy those forms across.
I did a trial run and I get an unusual error:
"The expression OnActivate you entered as an event property setting produced the following error: Member already exists in an object module from which this object module derives"
By running the debugger it highlights:
Option Explicit
Dim BackR As Integer 'The user's red colour
Dim BackG As Integer 'The user's green colour
Dim BackB As Integer 'The user's blue colour
-->HERE Dim textcolour As Integer 'The user's text colour
Now the strange thing is, that if I take it out of the Option explicit, and paste it within the OnLoad module (where I get the user's colours), then I get no error message.
And the stranger thing is, I did not change ANY code when I modified the form, I only added a few controls, none of which are remotely like 'textcolour'.
So why does it work on the other version, but not here?
It is in use, so I have done modifications on another copy of it. Tomorrow morning I want to copy those forms across.
I did a trial run and I get an unusual error:
"The expression OnActivate you entered as an event property setting produced the following error: Member already exists in an object module from which this object module derives"
By running the debugger it highlights:
Option Explicit
Dim BackR As Integer 'The user's red colour
Dim BackG As Integer 'The user's green colour
Dim BackB As Integer 'The user's blue colour
-->HERE Dim textcolour As Integer 'The user's text colour
Now the strange thing is, that if I take it out of the Option explicit, and paste it within the OnLoad module (where I get the user's colours), then I get no error message.
And the stranger thing is, I did not change ANY code when I modified the form, I only added a few controls, none of which are remotely like 'textcolour'.
So why does it work on the other version, but not here?