Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening a form in exactly the same location as an existing form

Status
Not open for further replies.

DRH192

Programmer
Apr 25, 2005
96
GB
I want a form to open up, resize to the one that opened it and appear in exactly the same location. I'm finding this ridiculously hard to do. I can open the form and use

DoCmd.MoveSize 1000, 1000, Forms("Form1").WindowWidth, Forms("Form1").WindowHeight

This sets the correct size of the form being opened, but how do I set the position?

Sending me mad!

Cheers
 
Tried it. I get Application defined or object defined error. I am using Access 2000 and Win2000.

 
What about this ?
Code:
With Forms("Form1")
  DoCmd.MoveSize .WindowLeft, .WindowTop, .WindowWidth, .WindowHeight
End With

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top