Chipcom,
To prevent access to the subform, set the Enabled property of the
subform to No.
As for shrinking and growing, I assume you mean a continuous view
subform whose height is adjusted according to the number of records. Is
that right? If so, you would need to write some VBA code to change the
height of the subform control, to a value that is calculated by
multiplying the number of records by the height of the Detail section of
the subform. If there were controls on the form which are underneath
the subform, and you wnat also that their position is adjusted according
to the height of the subform, then this would require more code to
adjust the value of their Top property. It can be done. The code would
probably need to run on the Current event of the main form.
--
Steve Schapel, Microsoft Access MVP
- Show quoted text -