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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open a Form in a specific position

Status
Not open for further replies.

txaccess

Technical User
Jul 21, 2004
91
US
I have a MouseMove Event that opens a popup form and another that closes the form. I would like the form to open in a specific position on the screen (i.e. directly underneath the label with the MouseMove Event). Is this possible, and if yes, how can this be done using VBA?

Thanks

I haven't failed, I have just found 10,000 ways that it won't work!
 
Take a look at Docmd.MoveSize. Place this in the popup's OnOpen event. There are parameters that will describe the location of top-left corner. By using the label's top (minus a little) and left properties, you should be able to accomplish what you want.
 
Thank you - I will have a tinker with that.

I haven't failed, I have just found 10,000 ways that it won't work!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top