Ilovexfiles
Registered User.
- Local time
- Today, 01:54
- Joined
- Jun 27, 2017
- Messages
- 37
I have just added "Option Explicit" and am trying to add variables to old code.
In my codes I am referring to "field names" (example below).
I added variables on the top of my module such as:
Dim PreExistingProgram as Integer
This caused compile problems in all of my modules, with errors stating:
"The member already exists in an object module from which this object module derives"
Any help understanding this is appreciated.
Private Sub PreExistingProgram_AfterUpdate()
If PreExistingProgram.Text = "none" Then
PreExistingAgency.Enabled = False
PreExistingProgram2.Enabled = False
PreExistingAgency2.Enabled = False
Else
PreExistingAgency.Enabled = True
PreExistingProgram2.Enabled = True
PreExistingAgency2.Enabled = True
End If
End Sub
In my codes I am referring to "field names" (example below).
I added variables on the top of my module such as:
Dim PreExistingProgram as Integer
This caused compile problems in all of my modules, with errors stating:
"The member already exists in an object module from which this object module derives"
Any help understanding this is appreciated.
Private Sub PreExistingProgram_AfterUpdate()
If PreExistingProgram.Text = "none" Then
PreExistingAgency.Enabled = False
PreExistingProgram2.Enabled = False
PreExistingAgency2.Enabled = False
Else
PreExistingAgency.Enabled = True
PreExistingProgram2.Enabled = True
PreExistingAgency2.Enabled = True
End If
End Sub