Resize forms not working (1 Viewer)

ANE002

New member
Local time
Today, 02:04
Joined
Aug 24, 2022
Messages
11
I have 3 forms that pop up in split form view and all have the same issue - they auto resize when they open when i dont want them to. I have a menu with command buttons to open each of the forms. When i click the cmdbt to open the form they all open in different positions and different sizes on the screen. If i manually resize the window, reposition it to where i want it to open, save/close/reopen, it resizes and moves locations.

these are some of my property settings (they are identical for all 3 forms yet they all open in different positions and sizes). What are some other things I can check to make them open with the same size and location that i choose each time?

border size: sizable
default view: split form
modal: no
moveable: yes
navigation buttons: yes
pop up: yes
split form datasheet: allow edits
split form orientation: datasheet on bottom
width:7"
 

Minty

AWF VIP
Local time
Today, 08:04
Joined
Jul 26, 2013
Messages
10,371
AutoResize and AutoCentre are two I would look at?

You can force a form to a specific position using the Form.Move VBA command
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 15:04
Joined
May 7, 2009
Messages
19,243
you can add code when the form Opens
you supply the values on the square brackets.

Code:
private sub form_open(cancel as integer)
    docmd.movesize [right],[down], [width], [height]
end sub
 

ANE002

New member
Local time
Today, 02:04
Joined
Aug 24, 2022
Messages
11
you can add code when the form Opens
you supply the values on the square brackets.

Code:
private sub form_open(cancel as integer)
    docmd.movesize [right],[down], [width], [height]
end sub

this worked perfectly. Thank you :)
 

Users who are viewing this thread

Top Bottom