Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / May 2005

Tip: Looking for answers? Try searching our database.

Automaximize form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Neil Greenough - 06 May 2005 14:09 GMT
Upon opening a database, I would like for a form to be automatically
maximised so that it covers the whole workspace.

How do I autorun this on opening the database? I know I need the do.cmd, but
what would be the complete code and how do I insert this?

Thanks.

PS: The form is called, frmMain
Rick Brandt - 06 May 2005 14:14 GMT
> Upon opening a database, I would like for a form to be automatically
> maximised so that it covers the whole workspace.
>
> How do I autorun this on opening the database? I know I need the
> do.cmd, but what would be the complete code and how do I insert this?

In the Open Event of the form...
DoCmd.Maximize

In Tools - Startup you can specify which form you want to automatically open
when the file is opened.

Signature

I don't check the Email account attached
to this message.     Send instead to...
RBrandt    at       Hunter      dot      com

Neil Greenough - 06 May 2005 14:29 GMT
Many thanks Rick

- All works great!
Van T. Dinh - 06 May 2005 14:26 GMT
I nomally use the Form_Activate Event to run the code:

   DoCmd.Maximize

Signature

HTH
Van T. Dinh
MVP (Access)

> Upon opening a database, I would like for a form to be automatically
> maximised so that it covers the whole workspace.
[quoted text clipped - 5 lines]
>
> PS: The form is called, frmMain
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.