Results 1 to 6 of 6
  1. #1
    GeorgeJ is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Dec 2014
    Posts
    67

    Have a form appear in a certain part of the screen

    Hello. I have a form, Form2, which I want to appear in a certain part of the screen. I want this to happen because I eventually want the form to be launched from code in another form (Form3)'s code file, and I want form3 to still be visible when form2 appears. I have been using design view on form2, but I have adjusted every format property which seems relevant, and I move form2 down to the lower left of the screen in Design View before I close it, but every time I double click on Form2 at the command screen it always appears near the center of the screen.



    The normal command in VBA I use to launch a form is

    DoCmd.OpenForm "Form2"

    Is there a modified version of this command that I could use to have the form open in a certain part of the screen? If not, is there a way I could change Form2's properties to have it appear at a certain place on the screen when it opens?

    Thanks in advance

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    The only thing that comes to mind is playing with MoveSize:

    https://msdn.microsoft.com/en-us/lib.../ff197394.aspx
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    JeffChr is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Feb 2014
    Posts
    82
    check your AutoCenter property for the form

  4. #4
    GeorgeJ is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Dec 2014
    Posts
    67
    Thanks.

    I set AutoCenter to No, Movable to No, then in Design View move the window containing Form2 to the lower left of the screen, then close the window saving the changes made, then in command mode double click on Form2 ands presto, it opens where I want it to.

    Problem (apparently) solved.

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Glad you sorted it. I'll be curious to see if it works correctly on other user's computers.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #6
    JeffChr is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Feb 2014
    Posts
    82
    me too (curious to see if it works correctly on other user's computers).

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Form full screen
    By chiaro59 in forum Forms
    Replies: 4
    Last Post: 10-24-2014, 04:21 AM
  2. Expand Form to fit screen?
    By offie in forum Forms
    Replies: 1
    Last Post: 08-05-2014, 03:23 PM
  3. How Can export Large table part by part
    By shabar in forum Import/Export Data
    Replies: 2
    Last Post: 02-04-2013, 06:29 AM
  4. bar on form screen
    By everette in forum Access
    Replies: 2
    Last Post: 10-08-2011, 12:10 PM
  5. Replies: 11
    Last Post: 06-05-2011, 09:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums