Change size of form

  • Thread starter Thread starter mike
  • Start date Start date
M

mike

Hi All,

How do you change the form size using codes. I have a user
form and I'm trying to change the size of the user form to
the size that I want.

I used the Forms.whidowsheight="4995" and the form
crashed. Any suggestions??

Thanks for the help...

mike
 
mike said:
Hi All,

How do you change the form size using codes. I have a user
form and I'm trying to change the size of the user form to
the size that I want.

I used the Forms.whidowsheight="4995" and the form
crashed. Any suggestions??

Thanks for the help...

What version of Access are you using? In Access 2002, the help file
*says* you should be able to say

Forms!MyFormName.WindowHeight = 4995

but in fact doing so gives error 2135, "This property is read-only and
can't be set." In Access 2000, the help file says, "These property
settings are read-only".

You can use DoCmd.MoveSize to size a form, plus I've found the
clFormWindow class posted here:

http://www.mvps.org/access/forms/frm0042.htm

to be quite handy for more sophisticated mamipulations.
 
Back
Top