hiding detail section

M

Michael

I have a form that on open hides all labels and controls
except a search combo box in the footer section.

After a selection is made the detail section becomes
visible with the related data.

Is there also a way to hide the detail section background?

michael
 
W

Wayne Morgan

The only 2 commands I can think of off-hand for what you're trying to do
are:

Me.Section(acDetail).Visible = False
and
Me.Section(acDetail).Height = 0

If these don't do what you need, will you provide more of an explanation.
 
M

Marshall Barton

Michael said:
I have a form that on open hides all labels and controls
except a search combo box in the footer section.

After a selection is made the detail section becomes
visible with the related data.

Is there also a way to hide the detail section background?


Not sure I understand what you want here, but if you want
the form to shrink up so the detail doesn't appear at all,
try thins kind of thing:

To shrink the form:
Me.InsideHeight = Me.Section(1).Height _
+ Me.Section(2).Height

To expand it so the detail is displayed:
Me.InsideHeight = Me.Section(1).Height _
+ Me.Section(2).Height _
+ Me.Section(0).Height

Don't forget that user's can drag the form's border to
resize it any way they like and this won't do anything if
the form is maximized.
 

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