Moving Access form at run time

  • Thread starter Thread starter Grigoriy
  • Start date Start date
G

Grigoriy

I open Access form as a Dialog. Property Auto Center set to "Yes" at disign
time. after that I hide some controls at run time and resize the form using
code below:
me.InsideHight=500
me.InsideWidth=1000
After that I want to move the form in the center of window again because
since it get smaller it located in the left top corner. How can i move the
Access form at run time or change "Top" and "Left" some how?
 
Girgoriy,

I believe you want to do this using docmd.movesize x,y with x being your
left value and y being your down value. 0,0 would be top left

HTH

Greg
 
Back
Top