you'll need some vba code to work out how may rows can be displayed (recordcount) and adjust the height of the form accordingly. Note this won't work with a tabbed display (A2007 & later) datasheet
If the frm is actually a subform, then you would adjust the height of the subform control
However I don't have time to spend on this so you'll need to research further