Visible or Invisible

andy101

New member
Local time
Today, 08:33
Joined
Mar 3, 2001
Messages
7
I have a large members form with several macro buttons leading to other froms which hold information about the member, i want to be able to make a button invisible depending on the value of a drop down box (values are yes or no, if the value = no the button is invisible, if the value = yes the button is visible). Please help!
 
The code is:
If Me.YourCombo = "no" then
Me.YourTextBox.Visible = False
Else
Me.YourTextBox.Visible = True
End If

The code needs to go in two places -
the on Current event of the form and the AfterUpdate event of the combobox.
 

Users who are viewing this thread

Back
Top Bottom