Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

access How to get the absolute position of a control

Posted on 2008-10-25
6
Medium Priority
?
175 Views
Last Modified: 2013-11-28
ms access  How to get the absolute position of a control
0
Comment
Question by:pbridda
  • 3
6 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 22803312
you can use the Top, left property of the control

0
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 2000 total points
ID: 22803477

sub getPosition(ctl as string)
dim y,x
y=me(ctl).top
x=me(ctl).left

msgbox  "Left : " & x & " Top :" & y
end sub
0
 

Author Comment

by:pbridda
ID: 22803506
I have to find the screen absolute position in pixel.
Thank
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 22803568
are you pertaining to a form or control?

see this link

http://support.microsoft.com/kb/q210141/

what exactly are you trynig to do?
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
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 …

972 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