Solved

Maximize on startup

Posted on 2004-09-12
11
808 Views
Last Modified: 2008-02-01
Hello Geek,

Please help me to maxamize the main window on startup. I have 2 Access apps running for 2 departments and some users use both. Sometimes the main window opens small but i want to use all the screen space.

Thanks,

M
0
Comment
Question by:Moother
11 Comments
 
LVL 12

Expert Comment

by:Sayedaziz
ID: 12037731
use

Private Sub Form_Load()
 DoCmd.Maximize
End Sub
0
 
LVL 27

Expert Comment

by:jjafferr
ID: 12037735
Hi Moother,

make a maco, in the Action column, select the following:
OpenForm, in the properties, select the Form Name,
maximize
save as autoexec

I hope this helps.

jaffer
0
 
LVL 3

Author Comment

by:Moother
ID: 12037743
Thanks, but maybe i didn't explain fully.

I know how to maxamize a form, but it's the main window of the app i want to go full screen.

Maxamizing a form only makes it as big as the main window allows but doesn't give my app the full screen i need.

Thanks,

m
0
 
LVL 27

Expert Comment

by:jjafferr
ID: 12037757
Moother,

Private Sub Form_Load()

'DoCmd.MoveSize Right, Down, Width, Height

'example
           DoCmd.MoveSize 4000, 3000            'this will move the 3" x 5 " form at the center of 21 inch monitor

end sub

got it from capricorn1's comment in http://www.experts-exchange.com/Databases/MS_Access/Q_21125698.html
0
 
LVL 27

Expert Comment

by:jjafferr
ID: 12037763
your concern is in the width and the Height

when you stretch your Form to the max, look at the value in the Form properties, then plug them in the code
keep in mind 1"=1440 twips
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 26

Accepted Solution

by:
dannywareham earned 25 total points
ID: 12037765
0
 
LVL 27

Expert Comment

by:jjafferr
ID: 12037766
you better look in the link I gave you, as there is another example I posted at the end, which might help too
0
 
LVL 3

Author Comment

by:Moother
ID: 12037832
allright... should have enough to go on here...

will revert soon...

have a wonderfull Sunday... hope you're not stuck in the office like me...
0
 
LVL 27

Assisted Solution

by:jjafferr
jjafferr earned 25 total points
ID: 12037842
Moother, I think you should try what danny pointed to, it looks the best solution, and it is summarized like this:

instead of using

DoCmd.Maximize

use

DoCmd.RunCommand acCmdAppMaximize

(Docmd.Maximize only maximizes the active internal window/form/report/etc)

where as DoCmd.RunCommand acCmdAppMaximize will maximize the application window
0
 
LVL 3

Author Comment

by:Moother
ID: 12037858
Fantastic jjaffer...

I'll get right onto that one!!!
0
 
LVL 3

Author Comment

by:Moother
ID: 12037902
thanks Geeks!

had to split there because jjafferr pointed me in the right direction...

had no time to follow the links so thanks both for your help...

M
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
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…
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 …

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

16 Experts available now in Live!

Get 1:1 Help Now