A form's window position - always tried always wanted to know...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there,

Have been developing access apps for sometime and never managed to figure
out how to read in code the x and y postion of an open form. I tried several
times in the past but always gave up.

I've got around it by postioning form A before opening B, never was happy
with it.

Any ideas would really be appreciated and many thanks already in advance...

Have a nice day...
Michael
 
Private Sub Command0_Click()

MsgBox "I'm positioned at: " & Me.WindowTop & "/" & Me.WindowLeft

End Sub
 
Thank you very much Brendan,

I tried it but it doesn't work in Access (97) VBA.
WindowTop & WindowLeft is not recognised!

But I always knew it should be that simple...

Cheers
Michael
 

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