Hide/Show controls

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
 
A

AlCamp

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top