Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form width 1

Status
Not open for further replies.

and0b

MIS
Mar 27, 2007
51
US
I'm creating for at run time:
Dim frm As Form

Set frm = CreateForm

frm.NavigationButtons = False
frm.Width = 500

why I can remove navigation buttons but not size??? Can someone help me with that?
 
I'm sorry, I was not clear - I want to change width of the form.
 
What is your statement actually doing, if anything, to the form's size? If frm.Width = 500 works it will set the form's width to approximately 1/3 of an inch, as the unit of measure for this is twips, with 1440 twips = 1 inch.

Also, Access will not allow a form to be sized down to the point that controls on the form are obliterated.

If you create a form that is, say, 4 inches wide, and place a textbox on it that is 1" from the left hand border of the form and is 2" wide, then in Design View, try to grab the form's border and attempt to decrease the width of the form to 2" Access won't let you, because it would obliverate half of the textbox.

The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
Problem is so I want to chcange size of the form during run time. I did try also other numbers for form width none was working.
 
Where Inches is a variable holding the width (in inches) you want:
Code:
Private Sub Form_Load()
 Dim Inches as Single
 DoCmd.MoveSize , , 1440 * Inches
End Sub

The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top