Results 1 to 3 of 3
  1. #1
    Lounger
    Join Date
    Mar 2001
    Location
    Texas
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    form placement in app window (Access 2002)

    I've completed my app but I don't like where some of the forms are appearing when they open. How can I tell Access where I want them placed in the window?

    Thanks in advance,

    Mary

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: form placement in app window (Access 2002)

    If you set the Auto Center property of a form to Yes, it will be centered (more or less) within the Access application window when it opens.
    If you set the Auto Center property to No, the form will be opened where it was (more or less) when you last saved it.
    If you want to open the form at a specific position, you can put code in the OIn Open event of the form:

    Private Sub Form_Open(Cancel As Integer)
    Me.Move Left:=1440, Top:=2880
    End Sub

    In this example, the form is positioned (more or less) 1 inch from the left edge and 2 inches from the top of the content area of the Access window. The coordinates are given in twips, where 1440 twips = 1 inch.

  3. #3
    Lounger
    Join Date
    Mar 2001
    Location
    Texas
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: form placement in app window (Access 2002)

    Thanks Hans. The ME.Move did exactly what I wanted.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •