Resize Form with vba ACCESS 2003

Posted on 2012-09-18
Medium Priority
Last Modified: 2012-09-18
I have a form that if the user selects a certain definer code, I need the form to expand to reflect a sub-form.  The sub-form only is relative to one particular definer code condition.  I can find the width property of the form, but how do I dynamically resize a form with vba?

Question by:ssmith94015
  • 2
LVL 58

Accepted Solution

Jim Dettman (Microsoft MVP/ EE MVE) earned 2000 total points
ID: 38410268

 With the Move/Size command, but it's not simple; every control needs to be re-sized as well.

 In fact it's a down right tricky process at times.  You need to be carefull with the elements and fonts that you use as well (not everything resizes well).

 My suggestion would be to pickup a copy of the Access Developers Handbook published by Sybex which has that code already, or buy Shrink Stretcher (a commerical product).

 You'll be way ahead time wise rather then trying to figure it all out and re-inventing the wheel.

LVL 58
ID: 38410277
BTW, here's a link for Shrink Stretcher:



Author Closing Comment

ID: 38410751
Thanks Jim.  The references were excellent.


Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question