I have the above in Form_Load and can change these values but the Forms position and/or size will not change.
I have Properties-Pop Up set to Yes, and autocenter No
It could be you need to select the form before the MozeSize
Try this tested code.
Code:
Option Compare Database
Option Explicit
Private Sub Form_Load()
' make sure the correct object is selected
DoCmd.SelectObject acForm, Me.Name
DoCmd.MoveSize 1, 10, 100, 1000
End Sub
*** The above code was copied from a form where it worked as you coded the MozeSize
I have the above in Form_Load and can change these values but the Forms position and/or size will not change.
I have Properties-Pop Up set to Yes, and autocenter No
It worked fine for me also without the select object in my testing.
If something has grabbed the focus, the MoveSiz may be trying to apply it to the incorrect object. I fidn this to be the most common cuase for teh MoveSize to not work as desired.
I prefer to be as explicit as possible with my VBA code. Never let Access guess what I want.
I found that adding the SelectObject before the MoveSize gives you a much better chance of it working on the desired object.