Form Size

  • Thread starter Thread starter Warrio
  • Start date Start date
W

Warrio

Hello!

Is it possible to change the form's width when the user clicks on a button??
I tried the following code without success..

myForm.Width = 10350 ' The code runs without any bug, but doesn't
change the current width of the form

and...

myForm.WidnowWidth = 10350 ' but Access says that this proprety can't
be set, cause it's a read only propriety

Thanks for any suggestion
 
Use either the DoCmd.MoveSize command or Forms("MyForm").Move
More info in Access help.
 
Warrio said:
Is it possible to change the form's width when the user clicks on a button??
I tried the following code without success..

myForm.Width = 10350 ' The code runs without any bug, but doesn't
change the current width of the form

and...

myForm.WidnowWidth = 10350 ' but Access says that this proprety can't
be set, cause it's a read only propriety

Another way is to use the form's InsideWidth property:

Me.InsideWidth = 10350
 
Back
Top