?
Solved

Positioning forms in Access 2000

Posted on 2003-03-13
6
Medium Priority
?
251 Views
Last Modified: 2007-12-19
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?
0
Comment
Question by:mikexexchange
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 5

Expert Comment

by:gwgaw
ID: 8128681
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
 

Author Comment

by:mikexexchange
ID: 8129147
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
 
LVL 8

Accepted Solution

by:
dovholuk earned 100 total points
ID: 8129546
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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 5

Assisted Solution

by:gwgaw
gwgaw earned 100 total points
ID: 8130363
If you want to move specific forms then...

DoCmd.SelectObject acForm, "NameofForm", False

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

gaw
0
 
LVL 12

Expert Comment

by:nexusnation
ID: 8785642
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
 
LVL 18

Expert Comment

by:1William
ID: 8892793
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

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question