Centering a form in the Access window

2389 Downloads

Author:  Peter Schroeder

This  example (A2K format) contains a module that can be used to reliably center (both horizontally and vertically) a form in the Access Window. There is a very simple demo of how it works, as well. The module itself uses Windows API calls to determine the Access application client area and the dimensions of the form in question, and calculates what the TOP and LEFT settings of the form should be to be centered in the Access window.

 

To use, simply insert the entire modCenterForm into your own database. It is called as follows:


Code:


 

Call gfncCenterForm([form])

Category: Example Forms
File Size: 15.21 KB
File Type: application/zip
Hits: 75634 Hits
Download: 2389 times
Created Date: 03-12-2016
Last Updated Date: 03-12-2016

Related documents

Wizard Form template
Wizard Form template

** Updated 1/9/2010 to handle an issue with Access 2010.

 

Schedule Grid - DesGrid
Schedule Grid - DesGrid

The company that originally deployed this product no longer supports it. The product has since given it to public domain  soley as an "as is" device. Their information has been stripped out of the attachments and manual. This tool is what it is and is considered "skilled" to "advanced" for level of developer skills to manipulate successfully.

Basically, you're on your own with this one. But it is an excellent portrayal of Access' capabitlies.

 

The download includes both  Access 97 and Access 2000 formats of these two files:

1) Orchid (the demo)

2) DesGrid (the un-altered components) 

Each contains a Month-Grid and an Hour-Grid. Also included is a PDF of the Manual.

Orders.mdb and Solutions.mdb
Orders.mdb and Solutions.mdb

The Orders and Developer Solutions sample databases that are included with earlier versions of Microsoft Access were not included with Access 2000.

The Orders and Developer Solutions sample databases for Access 2000 are now available

Orders   The Orders sample application is a sample order entry and invoicing system. Its features include the ShowEvents form, which helps you see the order in which events occur when you are working with forms and controls, and custom data filtering capabilities that you can use in addition to the filtering functionality provided by Access. The initial chapters of Microsoft Access 2000: Building Applications with Forms and Reports explain how to build the features shown in the sample application.

Developer Solutions   The Developer Solutions sample application contains examples of the forms, reports, and interface elements you most commonly use to create applications. From changing a form’s toolbars in response to events to creating a crosstab report with dynamic column headings, the objects in Developer Solutions illustrate the main areas of application design. This sample application also includes procedures that you might find useful as you develop your own applications—for example, you will find procedures that link tables at startup, close all objects when the user exits the application, and capitalize the first letter of every word in a field.

For more details see: Microsoft Access 2000: Building Applications with Forms and Reports

 

DB Manager
DB Manager

Author: weAscend Technologies

 

Link to any MDB or MDE file and view/edit data in tables with an added search feature. (Access 97).

 

This show how to have a dynamic grid that adjust to the number of fields in the query

 

It can be updated to Newer vrsions.

 

Exit with button only
Exit with button only

This example shows how to prevent a form from closing except by using a command button. The example is the main menu/switchboard form. Note that this technique can be easily used on any form.

ComboBox trick like on web pages
ComboBox trick like on web pages

Here is an example of how to make a combo box display text like "Find a Customer" and then when you click the drop down arrow, the text goes away. This is similar to what you see on web pages.

The attached is in 2000 format.