PC Review


Reply
Thread Tools Rate Thread

Change form size in VBA

 
 
=?Utf-8?B?RGVs?=
Guest
Posts: n/a
 
      15th Jun 2005
I want to adjust the size of a form for the best fit of controls that will be
visible when the form opens. My form is pop-up, model and dialog border.
The following code in the Open event of the form has no effect.

Me.Detail.Height = 2700
Me.Width = 3240
Help please.
--
Thank you,
Del
 
Reply With Quote
 
 
 
 
fredg
Guest
Posts: n/a
 
      15th Jun 2005
On Wed, 15 Jun 2005 10:29:11 -0700, Del wrote:

> I want to adjust the size of a form for the best fit of controls that will be
> visible when the form opens. My form is pop-up, model and dialog border.
> The following code in the Open event of the form has no effect.
>
> Me.Detail.Height = 2700
> Me.Width = 3240
> Help please.


You adjust the size of the entire form, not just a section.
Look up the MoveSize method in VBA Help.

Docmd.MoveSize , , 3*1440, 2 *1440

Will set the form width to 3" and it's height to 2"
All measurements are in Twips (1440 per inch).
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change form size AccessKay Microsoft Access Forms 4 30th Apr 2010 08:19 PM
Can VBA change Split Form Size? Brad Microsoft Access VBA Modules 3 11th Dec 2009 02:34 AM
Form elements change size with Screen Resolution change Amon.Noreinor@gmail.com Microsoft Excel Programming 0 24th Jan 2007 09:21 PM
Change tex field size in form =?Utf-8?B?VHJhY2llIEJlbnQ=?= Microsoft Access Forms 5 28th Jun 2005 10:13 PM
Change size of form mike Microsoft Access Forms 1 11th Nov 2003 10:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:36 PM.