PhilipBenno said:
Hello
I have a field where if a certain field is selected from the drop down list
then certain fields become visible. How do you make these invisible when
moving to a new record
You want to use the Form_Current() event to set the visibility of your
controls. This fires each time you go to a new record.
What I'd recommend doing is creating a standalone function which changes
the visibility based on the value of the combobox. That way you can call
the same function in both the control's after update event, and the form
current event.
Private Sub SetupForm()
If cboMyComboBox = "SomeValue" Then
txtMyControl1.Visible = False
txtMyControl2.Visible = False
txtMyControl3.Visible = True
Else
txtMyControl1.Visible = True
txtMyControl2.Visible = True
txtMyControl3.Visible = False
End If
End Sub