A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

form size



 
 
Thread Tools Display Modes
  #1  
Old December 8th, 2009, 08:56 AM posted to microsoft.public.access.forms
ashraf_al_ani via AccessMonster.com
external usenet poster
 
Posts: 14
Default form size

Dear All

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

Best Regards

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200912/1

  #2  
Old December 8th, 2009, 12:34 PM posted to microsoft.public.access.forms
Rob Parker[_3_]
external usenet poster
 
Posts: 173
Default form size

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



ashraf_al_ani via AccessMonster.com wrote:
Dear All

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

Best Regards



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:47 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.