absolutely cool, without code
but
with code looks just a touch better: the lower line of the fields in the
record is then also visible.
but thanks a lot for the information
Michiel
"Arno R" <ar****************@planet.nlwrote in message
news:47***********************@text.nova.planet.nl ...
"Marshall Barton" <ma*********@wowway.comschreef in bericht
news:bd********************************@4ax.com...
Michiel Rapati-Kekkonen wrote:
>>Is there maybe a trick
so that when I make a continuous form, the records fit exactly?
Now, without such trick, often the last visible record shows only half
and I have to stretch the form manually, and try, and try once more,
until all the visible records do fit neatly on my form.
Here's some air code for that kind of thing:
Sub Form_Load(...
Const M As Integer = 7 'Max rows to display
Dim K As Integer 'min of M and record count
With Me.RecordsetClone
.MoveLast
K = .RecordCount
If K M Then K = M
End With
Me.InsideHeight = K * Me.Section(0).Height _
+ Me.Section(1).Height + Me.Section(2).Height
End Sub
If your form does not have the Form Header/Footer sections,
drop the last line.
--
Marsh
Same thing without code:
Window menu: choose 'size to fit form' while in form view,
Then *save* the form. The window size is saved also
Arno R