开发者

I would like a new text box comes out when someone clicks on others

开发者 https://www.devze.com 2023-03-04 09:20 出处:网络
I have a form in access that dropdown box. Now what I want is when someone choose others from the dropdown box, a new text box shows up to allow the user to type. Anyone help please thank y开发者_Go百

I have a form in access that dropdown box. Now what I want is when someone choose others from the dropdown box, a new text box shows up to allow the user to type. Anyone help please thank y开发者_Go百科 ou


Assuming your DropDown is called Combo1 and on the same form you have a textbox called Text1 and the value of "Others" is also "others". Then you just need to code the Combo1's Change event like so

Private Sub Combo1_Change()

        Me.Text1.Visible = (Me.Combo1.Value = "others")        

End Sub
0

精彩评论

暂无评论...
验证码 换一张
取 消