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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Align Form fully to the left 3
Form Width Grows 6
Centering a form 2
Form Height 4
How to keep the top of the form anchored at the top 1
Access Running Balance in Access 1
Form size always maximized! 3
Change form size 4

Back
Top