Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resize continuous form

Status
Not open for further replies.

Drenda

Programmer
Sep 1, 2007
85
GB
Hi

Is there any way I can resize a continous form that can sink or grow dependant on the number of records

Thanks
 
You could do something like this.

Code:
Private Sub Form_Load()
  Dim x As Integer
  x = Me.RecordsetClone.RecordCount
  Me.InsideHeight = 1500 + x * 550
End Sub
On my form 1500 is the size needed to show the header and 550 needed per row.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top