[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2013-12-18
1
Medium Priority
?
1,121 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 40

Accepted Solution

by:
PatHartman earned 2000 total points
ID: 39727445
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

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

The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

872 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