Are you trying to resize the form for different screen
resolutions, or are you just trying to make the form a
specific size when it opens. If the latter, see MoveSize
in Help, or in newsgroup postings. I just use trial and
error for the MoveSize numbers, but if I used it more
often it would probably be worth the effort to determine
the exact numbers by more precise means.
The ADH code that is available online does a pretty good
job of working around a problem that Microsoft ignored.
If you use that code, you need to design your forms at the
largest screen resolution that will be used (e.g. design
at 800x600 when your operating environment has both
800x600 and 1024x768). Somebody tried to tell me in a
newsgroup posting that there should be a standard
operating environment for Access projects, but such an
assumption overlooks that not all machines in a typical
workplace environment are of the same approximate type and
configuration, and also ignores that some users have
vision difficulties necessitating a larger screen display.
I have not tried the software from PetersSoftware because
from what I can tell it replaces DoCmd.OpenForm, and in my
case I am opening my main form as the startup form, and
therefore not using OpenForm. I have read good things
about it, though.