Solved

Keeping a Form Maximized

Posted on 2008-10-05
6
803 Views
Last Modified: 2010-04-21
I'm working in Access 2007 for a project which will run in Access 2003.

A popup style dashboard form opens another form whose onLoad event executes 'doCmd.Maximize'.
To prevent users from restoring or minimizing the form, its control box (and avery other such control) is set to NO.

I'm just curious.  When I return to the dashboard after hiding the maximized form (Me.Visable = False), and subsiquently return to the hidden form, setting 'Form!myForm.Visable = True' from a dashboard command button, the form appears, but restored not maximized.

In fact, it looks like any time I switch program focus to a non-maximized form, returning to the form I want maximized finds that form's size not only 'restored' but also unable to be maximized, even interactively by double-clicking the titleBar.  At what trigger event will 'doCmd.Maximize' always "re-maximize" my form?  I've tried onLoad, onOpen, onCurrent.  

. . .and why is it so difficult to search MSDN.com for answers?!
0
Comment
Question by:Greg-C
  • 3
  • 2
6 Comments
 
LVL 26

Accepted Solution

by:
dannywareham earned 150 total points
ID: 22644641
Add the docmd.maximise to the On_Focus of your form.
Whenever your form is being used, it will maximise.

>>. . .and why is it so difficult to search MSDN.com for answers?!
There are sooooo many answers in there, it can be difficult withour a specific search quey term.
:-(
0
 
LVL 26

Expert Comment

by:dannywareham
ID: 22644657
Sorry - just reread your question.
Why does it do it? There's probably a windows default setting that has all applications window sizes as "restore".
It's a known bug:

http://www.mvps.org/access/bugs/bugs0026.htm
0
 
LVL 74

Assisted Solution

by:Jeffrey Coachman
Jeffrey Coachman earned 100 total points
ID: 22644836
Greg-C,

I also know that a lot of new "Window" properties and modes are now available in Access 2007.
Further complicates things.

Also you must be *very* careful if you are developing in 2007 for an app that will run in Access 2003.
Make sure you do not save the database into the 2007 format.

Also make sure you do not touch any of the "2007 specific" properties.
As they can cause strange behavior in Access 2003.

Some things you will get warned about, like Attachment fields, other things like Split forms and "Alternate Back color" will not say a word.

I have had lots of databases that were worked on in 2007, (even though they were still in the 2003 format) crash or lock up on me for no reason.

So be careful.

JeffCoachman
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 26

Expert Comment

by:dannywareham
ID: 22644858
Great advice Jeff.
Also, different Access versions refer to different MS Office locations on your PC for their support files (references).
It's a pretty big no no to develop in a different environment than the user.
Even if you convert your db to 2003, it may still stop working because of broken references in your VBA.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 22646146
Greg-C,

Can you post a sanitized version of your DB here, along with detailed instructions on how to re-create this issue?

JeffCoachman
0
 

Author Closing Comment

by:Greg-C
ID: 31503178
I want to close out this question.  Your answers were helpful but I couldn't get the 'onFocus' option to work.  I've been busy with other things and will revisit this later.  Thanks for the good advice about version conflict caution.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

932 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

13 Experts available now in Live!

Get 1:1 Help Now