I have a combo box on the main form with values (1,2,3,4). I want to only display a subform nested in the main form if the value of the combo box is 4. Here is the code I have on the afterupdate on the combo box.
If STATUS = "4" Then
ORDERS_subform1.Visible = True
Else
ORDERS_subform1.Visible = False
End If
End Sub
This works great but when I change records the subform's visibility is remains bound to the previous record and not the current records combo box.
If STATUS = "4" Then
ORDERS_subform1.Visible = True
Else
ORDERS_subform1.Visible = False
End If
End Sub
This works great but when I change records the subform's visibility is remains bound to the previous record and not the current records combo box.