How can i Move My Form to my left of my screen on Load (1 Viewer)

nick07

New member
Local time
Today, 18:54
Joined
Sep 5, 2023
Messages
3
Im trying to load a form to be bottom right of my screen and on other screen sizes too, how can i accomplish this result in access 2016
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 11:54
Joined
Feb 19, 2002
Messages
43,275
Turn off the autocenter property and when the form opens, it will open in the position where it was when you saved it in design view. If that doesn't solve the problem, then you can use code to move the form around after it opens.
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 10:54
Joined
Feb 28, 2001
Messages
27,187
OK, you got two viewpoints so far. I'll step behind the scenes.

To figure out what you have to work with,


From there, remember that the "anchor point" in Access is the top left corner, which is to say (top=0, left=0). So you can set the form's position to the far left as 0, but to set it to the bottom of that area, you must take the bottom as determined from the parent window size and subtract the form's height to place the form vertically at the bottom of the window.
 
Local time
Today, 11:54
Joined
Sep 16, 2023
Messages
35
You must also understand that the forms open within access and not anywhere.
Therefore you must maximize access to cover everything and position your forms as desired.
If what you want is to show other applications, you will have to modify the access form in me.app and other ways.

You can also make the access form not visible, but that is more difficult.
 

CJ_London

Super Moderator
Staff member
Local time
Today, 16:54
Joined
Feb 19, 2013
Messages
16,614
You also need to set overlapping windows and/or your forms need to be popups
 

sarfarazali

New member
Local time
Today, 21:24
Joined
Sep 17, 2023
Messages
1
In Access 2016, use the "Anchoring" feature to position the form in the bottom right corner and ensure it adapts to different screen sizes.
 

theDBguy

I’m here to help
Staff member
Local time
Today, 08:54
Joined
Oct 29, 2018
Messages
21,473
In Access 2016, use the "Anchoring" feature to position the form in the bottom right corner and ensure it adapts to different screen sizes.
Hi @sarfarazali. Welcome to AWF!

Isn't Anchoring only for Controls and not Forms? How exactly do you anchor forms to the screen?
 
Local time
Today, 11:54
Joined
Sep 16, 2023
Messages
35
DoCmd.RunCommand acCmdAppMaximize
This maximizes access, then you can maximize or position each shape as needed.
or/and acCmd
acCmdAnchorBottomLeft616
acCmdAnchorBottomRight618
acCmdAnchorBottomStretchAcross617
acCmdAnchorStretchAcross611
acCmdAnchorStretchDown613
acCmdAnchorStretchDownAcross614
acCmdAnchorStretchDownRight615
acCmdAnchorTopLeft610
acCmdAnchorTopRight612

DoCmd.Maximize
also
Use vba or seting form
Me.AutoCenter = xx
Me.AutoResize = xx
Me.WindowHeight = xx
Me.WindowLeft = xx
Me.WindowTop = xx
Me.WindowWidth = xx
 
Last edited:

Users who are viewing this thread

Top Bottom