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 / General 2 / January 2008

Tip: Looking for answers? Try searching our database.

Set height of form?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ed from AZ - 10 Jan 2008 21:17 GMT
I'm new to Access VBA.  I'm trying to set the height of the form when
it loads.  I have controls farther down, but I don't want the form to
show everything unless the user needs those other controls.  I set
CanGrow to No and put in this code:

Private Sub Form_Load()
   Me.Detail.Height = 1440
End Sub

But the form loads with its full height displayed.

How can I accomplish this?

Ed
Jeanette Cunningham - 10 Jan 2008 21:32 GMT
Hi Ed,

Try using
   DoCmd.MoveSize
If you put the cursor in MoveSize and press F1, the help will explain what
to do.

Jeanette Cunningham

> I'm new to Access VBA.  I'm trying to set the height of the form when
> it loads.  I have controls farther down, but I don't want the form to
[quoted text clipped - 10 lines]
>
> Ed
Ed from AZ - 10 Jan 2008 21:38 GMT
Beautiful, Jeanette!  Thank you!!

Ed

On Jan 10, 2:32 pm, "Jeanette Cunningham"
<n...@discussions.microsoft.com> wrote:
> Hi Ed,
>
[quoted text clipped - 21 lines]
>
> - Show quoted text -
 
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



©2009 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.