D
dougal
Hi,
I'm a total access novice and would really appreciate some help with this. I
have a combo box which has three choices; Yes, No and Don't Know. Depending
on the choice I want other combo boxes to remain disabled or become enabled.
I have managed it so that combo B becomes active when combo A = "Yes" and
plan to replicate this for the others ..
Private Sub ComboA_AfterUpdate()
If Me.ComboA= "Yes" Then
Me.ComboB.Enabled = True
Me.ComboC.Enabled = False
Me.ComboD.Enabled = False
Me.TextA.Enabled = False
Else
Me.ComboB.Enabled = False
Me.ComboC.Enabled = True
Me.ComboD.Enabled = False
Me.TextA.Enabled = False
End If
End Sub
My problem comes when I move between records - the fields are displayed as
being enabled or disabled depending on the current record although the fields
do display their correct selection.
Any help would be muchly appreciated!
I'm a total access novice and would really appreciate some help with this. I
have a combo box which has three choices; Yes, No and Don't Know. Depending
on the choice I want other combo boxes to remain disabled or become enabled.
I have managed it so that combo B becomes active when combo A = "Yes" and
plan to replicate this for the others ..
Private Sub ComboA_AfterUpdate()
If Me.ComboA= "Yes" Then
Me.ComboB.Enabled = True
Me.ComboC.Enabled = False
Me.ComboD.Enabled = False
Me.TextA.Enabled = False
Else
Me.ComboB.Enabled = False
Me.ComboC.Enabled = True
Me.ComboD.Enabled = False
Me.TextA.Enabled = False
End If
End Sub
My problem comes when I move between records - the fields are displayed as
being enabled or disabled depending on the current record although the fields
do display their correct selection.
Any help would be muchly appreciated!