?
Solved

How can I move 2 button controls near the middle of the screen in Access 2003 upon the load of the application?

Posted on 2012-03-21
5
Medium Priority
?
205 Views
Last Modified: 2012-06-22
I am developing an Access 2003 application and I want to move 2 button controls towards the middle of the screen on the load of the application aligned horizontally about 1 inch apart. Do you know how I can achieve this?

Label146 and Label147 are the 2 controls.

Label146.Top = ???
Label146.Left = ???
(Width = 1.0417")

Label147.Top = ???
Label147.Left = ???
(Width = 3.2083")
0
Comment
Question by:zimmer9
[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
  • 3
5 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37752302
Why do the buttons need to be "moved" every time the app opens?
Why not put the button in that location by default?

Moving buttons dynamically is something that is just not done all that often (because of user "expectation" issues)

In other words can you post more details on what you are trying to achieve here?
0
 
LVL 17

Expert Comment

by:ramrom
ID: 37752606
Controls belong to a form. I assume a form is opened when the application is started. The open event of that form is where you put the code to position the labels.

By screen I assume you mean the display - so you'd have to get the height & width of the display, divide by2 - that gives you the center.

What if you have a dual monitor setup?

What if the form's window does not include the display center?

Am I with you or do you want to clarify?
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37752826
Also confusing is that you say you want to move "Buttons", ...yet you list the details of your "Labels".

So what are we talking about here?

Again, we need much more information...
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 2000 total points
ID: 37752853
To be sure, you can set the "Auto Center" property of a form to "Yes".
And the form will always open in the center of the "Access" window.
(You can also set the Movable property to No, so the form cannot be moved.)
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

764 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