Hiding controls in page detail

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

How can I hide all controls whose names begin with string abc in the page
detail section?

Thanks

Regards
 
You can add code to the On Format event of the detail section like:

Dim ctl as Control
For Each ctl In Me.Section(0).Controls
ctl.Visible = (Left(ctl.Name,3) <> "abc")
Next
 

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

Back
Top