hi, i'm using this function to autoresize a subform that has only detail section
it returns me "wrong number of arguments or property assignation not valid.Code:Function ResizeSubForm(SubFrm As SubForm) Dim rs As DAO.Recordset Dim RecordCnt As Integer Set rs = SubFrm.Form.RecordsetClone RecordCnt = rs.RecordCount SubFrm.Height = SubFrm.Section(0).Height * (RecordCnt) End Function
i tried too with "subfrm.section(AcDetail)
thoughts?