G
Guest
I posted this in the General Questions and received good, helpful answers,
but I'm still having a problem. I want to make 2 combo boxes, Groups and
Names, hidden until I choose the option/value Rules in another Combo box,
ChangeMade. I used this code in the AfterUpdate event of ChangeMade. (the
requery is to control the options available in another combo box.)
Private Sub ChangeMade_AfterUpdate()
Me.ChangeType = Null
Me.ChangeType.Requery
Me.ChangeType = Me.ChangeType.ItemData(0)
If Me.ChangeMade.Value = "Rules" Then
Me.Groups.Visible = True
Me.Names.Visible = True
Else
Me.Groups.Visible = False
Me.Names.Visible = False
End If
End Sub
I also tried in conjuction with this code and alone, the code below in the
OnOpen event of the form.
me.groups.visible = false
me.names.visible = false
But it seems that after Groups and Names are hidden, they don't reappear. I
have to manually reset the Visible property to Yes. Any ideas, workarounds,
troubleshooting....
Thanks!
but I'm still having a problem. I want to make 2 combo boxes, Groups and
Names, hidden until I choose the option/value Rules in another Combo box,
ChangeMade. I used this code in the AfterUpdate event of ChangeMade. (the
requery is to control the options available in another combo box.)
Private Sub ChangeMade_AfterUpdate()
Me.ChangeType = Null
Me.ChangeType.Requery
Me.ChangeType = Me.ChangeType.ItemData(0)
If Me.ChangeMade.Value = "Rules" Then
Me.Groups.Visible = True
Me.Names.Visible = True
Else
Me.Groups.Visible = False
Me.Names.Visible = False
End If
End Sub
I also tried in conjuction with this code and alone, the code below in the
OnOpen event of the form.
me.groups.visible = false
me.names.visible = false
But it seems that after Groups and Names are hidden, they don't reappear. I
have to manually reset the Visible property to Yes. Any ideas, workarounds,
troubleshooting....
Thanks!