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 / Forms Programming / June 2007

Tip: Looking for answers? Try searching our database.

Form maximization

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MSA - 24 Jun 2007 18:30 GMT
I have form that is open by clicking a button, would like to have the form
maximized.

Following is the code:
Private Sub f0_ich_Click()
On Error GoTo Err_f0_ich_Click

   Dim stDocName As String
   Dim stLinkCriteria As String

   stDocName = "f0_ICH"
   DoCmd.OpenForm stDocName, , , stLinkCriteria

Exit_f0_ich_Click:
   Exit Sub

Err_f0_ich_Click:
   MsgBox Err.Description
   Resume Exit_f0_ich_Click
   
End Sub

What do I need to add for the form to be maximized.

Thanks
tina - 24 Jun 2007 19:23 GMT
*in the form you want to maximize*, add the following code to the form's
Load event procedure, as

   DoCmd.Maximize

hth

> I have form that is open by clicking a button, would like to have the form
> maximized.
[quoted text clipped - 21 lines]
>
> Thanks
 
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.