N
NEOFYTOS
hello my name is Neofytos
i try to make a complex code and i need help.
i have the following code who separetly they are working properly.
my problem is to combine the following codes which are based all in the
field "edafoponiki morfi" in one concecutively code.
Private Sub EdafoponikiMorfi_AfterUpdate()
If Me.EdafoponikiMorfi.Value = 1 Or Me.EdafoponikiMorfi.Value = 2 Then
Me.StandOrigin.Enabled = True
Me.GrowthStage.Enabled = True
Me.MixtureType.Enabled = True
Me.F_UnderStoreySpecies_subform.Enabled = True
Me.F_TexnitiRecords_subform.Enabled = True
else
Me.StandOrigin.Enabled = False
Me.GrowthStage.Enabled = False
Me.MixtureType.Enabled = False
Me.F_UnderStoreySpecies_subform.Enabled = False
Me.F_TexnitiRecords_subform.Enabled = False
If Me.EdafoponikiMorfi.Value = 9 Then
Me.Platos.Enabled = True
Else
Me.Platos.Enabled = False
If Me.EdafoponikiMorfi.Value = 8 Then
Me.EdafoponikiDescription.Enabled = True
Else
Me.EdafoponikiDescription.Enabled = False
If Me.EdafoponikiMorfi.Value = 1 Or Me.EdafoponikiMorfi.Value = 2 Or
Me.EdafoponikiMorfi.Value = 3 Then
Me.F_ForestSpecies_subform.Enabled = True
Else
Me.F_ForestSpecies_subform.Enabled = False
End If
it is important for me to know the procedure,rules and steps
that i have to follow in order to write these complex codes
i am sure for your help
-- best regards
neofytos
THANK YOU
i try to make a complex code and i need help.
i have the following code who separetly they are working properly.
my problem is to combine the following codes which are based all in the
field "edafoponiki morfi" in one concecutively code.
Private Sub EdafoponikiMorfi_AfterUpdate()
If Me.EdafoponikiMorfi.Value = 1 Or Me.EdafoponikiMorfi.Value = 2 Then
Me.StandOrigin.Enabled = True
Me.GrowthStage.Enabled = True
Me.MixtureType.Enabled = True
Me.F_UnderStoreySpecies_subform.Enabled = True
Me.F_TexnitiRecords_subform.Enabled = True
else
Me.StandOrigin.Enabled = False
Me.GrowthStage.Enabled = False
Me.MixtureType.Enabled = False
Me.F_UnderStoreySpecies_subform.Enabled = False
Me.F_TexnitiRecords_subform.Enabled = False
If Me.EdafoponikiMorfi.Value = 9 Then
Me.Platos.Enabled = True
Else
Me.Platos.Enabled = False
If Me.EdafoponikiMorfi.Value = 8 Then
Me.EdafoponikiDescription.Enabled = True
Else
Me.EdafoponikiDescription.Enabled = False
If Me.EdafoponikiMorfi.Value = 1 Or Me.EdafoponikiMorfi.Value = 2 Or
Me.EdafoponikiMorfi.Value = 3 Then
Me.F_ForestSpecies_subform.Enabled = True
Else
Me.F_ForestSpecies_subform.Enabled = False
End If
it is important for me to know the procedure,rules and steps
that i have to follow in order to write these complex codes
i am sure for your help
-- best regards
neofytos
THANK YOU