Positioning forms in Access 2000

Hi There,

I am currently using Access 2002 and the .move command. Unfortunately this does not seem to be supported in Access 2000 and I can't find an equivilant.

Does anyone know?
mikexexchangeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gwgawCommented:
Use the MoveSize method of the DoCmd object.

From Access help...

The following example moves the active window and changes its height, but leaves its width unchanged:

DoCmd.MoveSize 1440, 2400, , 2000

gaw
0
mikexexchangeAuthor Commented:
Ah, that is fine for the selected form, but what about several forms? I would like to position 4 forms from one piece of code.
0
dovholukCommented:
all you need to do is give each form you're looking to move the focus, then call docmd.movesize...

for example:


   Dim f As Form
   Dim startform As Form

Set startform = Me

For Each f In Forms
   f.SetFocus
   DoCmd.MoveSize 0, 0
Next f

Me.SetFocus


will take EVERY form on the screen and move it into the top left part of the access window...

enjoy

dovholuk
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

gwgawCommented:
If you want to move specific forms then...

DoCmd.SelectObject acForm, "NameofForm", False

Then call DoCmd.MoveSize to position/resize the form.

gaw
0
nexusnationCommented:
Hi mikexexchange,
This question has been abandoned and needs to be finalized (102 days since last comment).

   You can accept an answer, split the points, or get a refund. Go to
   http://www.cityofangels.com/Experts/Closing.htm for information and options.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

nexusnation
EE Cleanup Volunteer for Microsoft Access
0
1WilliamCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept question, slpit points to gwgaw  and dovholuk
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

1William
EE Cleanup Volunteer
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.