Finding a forms on screen location reference....or summet like that

  • Thread starter Thread starter Kelv
  • Start date Start date
K

Kelv

Hi, me again. Its been a long time (as you can prob tell) since I've done
any coding but I remember years ago when doing VB that there was a .top
reference to establish as forms distance from the top of the screen. Have I
wrongly assumed their would be something similar in Access? My intension is
(was) to open a 2nd form and place it directly under the current form that
is open. Similarly .left is no where to be found, are there work arounds or
other references which can be used for this?

Thanks,

Kelv
 
Try WindowTop and WindowLeft. Here's an example that off-sets the second
form slightly, just so you can see what's happening.

Private Sub cmdTest_Click()

DoCmd.OpenForm "frmTest1"
DoCmd.SelectObject acForm, "frmTest1", False
DoCmd.MoveSize Me.WindowLeft + 500, Me.WindowTop + 500, Me.WindowWidth,
Me.WindowHeight

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top