R
rob
Is it possible to change the height of the detail section of a form using
the "On Open" event ?
If so, what is the syntax ?
the "On Open" event ?
If so, what is the syntax ?
Marshall Barton said:Almost Damon, as you said, the height of the form is set
using InsideHeight. But the height of the detail section is
whatever is left over after the form header and footer
sections are displayed. I.E. there is no effect (and hence
no reason) in setting the detail height.
To set the form height so the detail is a predetermined
height, use something more like:
Me.InsideHeight = Me.Section(1).Height + _
Me.Section(2).Height + desireddetailheight
Note that if the form doesn't have the header/footer
sections, those terms must be omitted from the expression.
--
Marsh
MVP [MS Access]
Damon said:Yes,
Your form should be larger than the detail though.
on open....
Me.InsideHeight = 7000 'this is the form's height
Me.Detail.Height = 3880 'this is detail
'expressed in twips
rob said:Regarding Me.Section(1) and Me.Section(2). - what do the (1) and (2)
represent ?
I should have specified that I am using a Continuous form which includes
Headers and Footers. It appears that for my purposes the setting
Me.Detail.Height = 250 alone does the trick. (I have 5 rows of data during
design, but based selection from option box, only 1 row is ever presented at
a time. I am manipulating the Top, Visible, and Enabled properties of
each text box in the row to do this.)