I'm working with MS Access at the moment and I'm having a problem getting a VBA script to fire. I think that the code is correct but when I test it nothing is happening. I am trying to make a text box disappear it the value of a combo box. The combo box has two values possible, Yes and No. If the Value is Yes I want the text box to disappear. I'm not really sure what I am doing wrong here but I really need help. I've done this before a few years ago, but either something has changed or I'm out of practice.
Here is the code that I am using.
Private Sub cmb_prt_spec_ac_AfterUpdate()
If cmb_prt_spec_ac.Value = "Yes" Then txt_spec_ac.Visible = False
End Sub
In the properties box for the combo box in the AfterUpdate space I have = [cmb_prt_spec_ac] and that should fire the VBA script, but thus far I'm not getting any results. I'm really thinking that I have just missed something stupid here and I'll be kicking myself in the butt as soon as I figure it out.
Here is the code that I am using.
Private Sub cmb_prt_spec_ac_AfterUpdate()
If cmb_prt_spec_ac.Value = "Yes" Then txt_spec_ac.Visible = False
End Sub
In the properties box for the combo box in the AfterUpdate space I have = [cmb_prt_spec_ac] and that should fire the VBA script, but thus far I'm not getting any results. I'm really thinking that I have just missed something stupid here and I'll be kicking myself in the butt as soon as I figure it out.