Wrox Programmer Forums
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 12th, 2008, 05:31 AM
Authorized User
Join Date: May 2007
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default form positioning

Hi all,

Is there anyway to set the absolute position of a form on the screen so that it opens in the same place. Auto centre doesn't seem to work and its becoming annoying. I have numerous different sized forms and would like each to open at a set point depending on the size of it.

At the moment the forms are opening seemingly whereever they feel like it, regardless of where i closed them up in design view or moved them once i re-enabled movable.

If looked through all my library of books of vba and access and can't find anything there

Old February 12th, 2008, 08:26 AM
Friend of Wrox
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts

You want to use the Move property of the form. On the Form_Load event, try this code:

Me.Move Left:=1440, Top:=2880

The Move command uses twips, and there are 1440 twips per inch. So this line moves the top left corner of the form 1 inch left and 2 inches down from the inside corner of the Access window.

Did that help?


Look it up at: http://wrox.books24x7.com
Old February 12th, 2008, 08:52 AM
Authorized User
Join Date: May 2007
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts

thanks i'll give it a go and post back if get any problems

Similar Threads
Thread Thread Starter Forum Replies Last Post
positioning text + form element + firefox Adam H-W CSS Cascading Style Sheets 2 June 12th, 2007 03:18 AM
positioning issue Adam H-W CSS Cascading Style Sheets 3 January 20th, 2007 07:28 AM
Positioning Calculations rit01 ASP.NET 1.x and 2.0 Application Design 3 February 22nd, 2006 03:10 PM
MDI Child Form Positioning BSkelding VB.NET 2002/2003 Basics 1 December 11th, 2004 01:56 AM
cursor positioning alihussein3 Javascript How-To 1 October 22nd, 2003 03:52 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.