Solved

VBA - Page Maximisation

Posted on 2006-07-07
3
240 Views
Last Modified: 2008-03-06
I have a page which insists on itself being maximised. I have tried to solve this by using DoCmd.MoveSize 3500, 2000, 12000, 8000, but it still has issues. I have found all the maximise code and commented them out. I have now used DoCmd.Restore, but it looks weird when its resizing itself. Is there a properties function I have missed or something? Also how do i get my scrren to be in the centre of the ocmputer screen. I have it on other forms, but have forgotten what I did??
0
Comment
Question by:andyb7901
3 Comments
 
LVL 65

Expert Comment

by:rockiroads
ID: 17058982
u can centre screen in design, I think
There is Auto Center, dont know if that will help u
0
 

Author Comment

by:andyb7901
ID: 17059076
I have enabled auto centre, but it seems to put itself equal distance from each side of the screen, but the bottom of the form is right at the bottom of the screen! WEIRD??
0
 
LVL 34

Accepted Solution

by:
jefftwilley earned 500 total points
ID: 17060648
If the form is opened from another form, or from a menu of some kind, you need to make sure it's opened normally and not maximized at that time. You said you went through all the code and took out the maximize, but you might have missed one. If you want your form to autocenter, then rocki's suggestion is the preferred method. If you use the MoveSize like you mentoin initially, then you need to remove the autocenter property(set autocenter to no). Access remembers relative screen size and position. If you open your form in design view, put it where on the screen you want it, size it appropriately then save it, it will remember where it's supposed to be next time it's opened. Let us know if you've got this one whipped.
J
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
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…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

747 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