form size

  • Thread starter ashraf_al_ani via AccessMonster.com
  • Start date
A

ashraf_al_ani via AccessMonster.com

Dear All

Can I Control the size of the form according to the data that it previwes??

Best Regards
 
R

Rob Parker

Assuming that you're wanting to control the height of a continuous form?
The short answer is no. You can set the form's Border Style property to
'Sizable' to allow users to resize it when it is displayed. But, if you are
really determined, then my general philosophy of "you can do anything if
you're bloody-minded enough" can be put into action. No detail, but the
approach would be:
Determine how many records are to be displayed (via
Me.RecordsetClone.RecordCount)
Calculate how big your form would need to be to display that many
records
In the form's Load event (the Open event will be too early), run code
using the DoCmd.MoveSize method to resize the form

You might also want to limit the size so that the form doesn't get too big
for the screen.

Have fun,

Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top