Hide/Show controls

  • Thread starter Thread starter Walter
  • Start date Start date
W

Walter

I have a subform with 7 controls in form view on the main
form. I want 4 of these to be hidden in a new record and
the appropriate ones to be visible based on the data in
one of the others. I have set the properties to Visible
= No and coded the AfterUpdate Event to set Visible = Yes
but when I move to a new record, the same control is
visible until the "criteria" control is changed. Also,
when returning to a previous record, all 4 are invisible
even if they contain data. I need for them to remain
visible when they contain data. Any help is greatly
appreciated.
Thanks,
Walter
 
Walter,
You also need to apply your show/noshow logic using the OnCurrent event
of the form... as well as the AfterUpdate event of the controls involved.
hth
Al Camp
 
Back
Top