Solved

How do i get my forms always full screen in the center of the screen.

Posted on 2013-12-18
1
920 Views
Last Modified: 2013-12-18
Hoi,

I have a simple database with a few forms which have all different sizes.
How do i get my forms always full screen and in the center of the screen.
I've tried, and it only worked with complicated VBA which I found on the internet.
Is there a simple way to do that.

tx
0
Comment
Question by:sonmic
1 Comment
 
LVL 34

Accepted Solution

by:
PatHartman earned 500 total points
Comment Utility
If you are using A2007 or newer, switch to the tab interface.  Otherwise all you need is a single line of code in each form's Open event.

DoCmd.Maximize

This makes the forms full screen but doesn't center or resize them.  The code you were looking at actually resizes the forms and the controls and centers them so they look nice.

If you have the code working, why switch?

If you really want the forms adjusted so they look natural at full size, get something like Peter's shrinker stretcher (or something like that) from Peter's Software.  The price is low and it requires changing the command to open a form from the standard DoCmd.OpenForm to their custom command.  I don't recall anything else but it has been a few years since I've used it.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now